httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] mod_rewrite[SOLVED]
Date Tue, 31 Aug 2004 09:26:48 GMT
Joseph A. Nagy, Jr wrote:
> Thanks for the help, although the above didn't work, after some more
> fiddling I found the following solution:
>
>  RewriteEngine on
>  RewriteCond %{HTTP_HOST}  ^joseph-a-nagy-jr.homelinux.org$ [NC,OR]
>  RewriteCond %{SERVER_NAME} ^joseph-a-nagy-jr.homelinux.org$ [NC]
>  RewriteRule "(.*)"      "http://www.joseph-a-nagy-jr.us$1" [R]

Don't know about your setup, but the "standard" way to deal with this would
be:

    <VirtualHost *>
        ServerName joseph-a-nagy-jr.homelinux.org
        Redirect / http://www.joseph-a-nagy-jr.us/
    </VirtualHost>
    <VirtualHost *>
        ServerName www.joseph-a-nagy-jr.us
        ...
    </VirtualHost>

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message