You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Julian Grunnell <jg...@firstnet.net.uk> on 2003/05/22 11:08:23 UTC

[users@httpd] mod rewrite problem

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

Thanks - J.

Julian Grunnell
3rd Line Technical Support
E: jgrunnell@firstnet.net.uk
T: 0870 1278008 F: 0870 1278009
DDI: 0113 292 7739
http://www.firstnet.net.uk

Firstnet Services Ltd
Registered Office: Peregrine House, Gelderd Close, Leeds, LS12 6DS 
Registered in England no. 3152569

This email is subject to: http://www.firstnet.net.uk/disclaimer.html

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


Re: [users@httpd] mod rewrite problem

Posted by Joseph A Nagy Jr <jo...@charter.net>.
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