httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph A Nagy Jr <joseph_a_nagy...@charter.net>
Subject Re: [users@httpd] mod rewrite problem
Date Thu, 22 May 2003 09:14:45 GMT
Julian Grunnell wrote:
> Hi - could someone pls help me with a mod rewrite problem I'm having pls?
> 
> I would like to have a rewrite rule to be applied to www.anything.here to goto www1.anything.here?
> 
> I have tried several configs but just can't quite get it right, any help would be appreciated.
> 
> I currently have:
> 
> ...
> RewriteEngine on
> RewriteLogLevel 9
> RewriteLog logs/rewrite.log
> 
> RewriteCond %{HTTP_HOST} ^www\..*
> RewriteRule ????????
<snip>

I use the following rule to have (the now defunct website) 
http://finding-lauren.homelinux.org automatically redirect to 
http://finding-lauren.homelinux.org/content/

     RewriteEngine on
     RewriteRule   ^/$  /content/  [R]

The rewrite rule for what you want should be similar, but I could be 
wrong. Of course I'm assuming you've read the mod_rewrite section in the 
supplied Apache Documentation. :)


---------------------------------------------------------------------
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