Hi Davide,
The problem with that is, that I already am getting some traffic from
google, and I want people who click on links like:
http://domain.com/index.php?args=123
To get the URL in their browser as:
http://www.domain.com/index.php?args=123
I have 4 <VirtualHost> directives: domain.com; domain2.com;
www.domain.com;
www.domain2.com; all identical except for the ServerName... Thus to do this,
I think I'm going to need to use mod_rewrite directives in an .htaccess file
at the root of my web-space... I want all these domains to be re-written to
a single domain (
www.domain.com), and preserve all the arguments on the URL
they followed... Am I correct in assuming that mod_rewrite is the best tool
for the job in this case? If not, can anyone suggest better way?
Thanks again..
Aidan
"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnciqvvs.1h8.davideyeahsure@fogg.onlyforfun .net...
> On 2004-08-26, Aidan <nospam.aidan@linknet.com.au> wrote:
> > I'm trying to create some rewrite rules that will allow me to rewrite
the
> > URL to always use a www prefix in the hostname
>
> Use the UseCanonicalName and the ServerName directive for this, no
> need to fool around with rewrite.
>
> Davide
>
> --
> When you don't know what you are doing, do it neatly.