httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reese <howel...@inkworkswell.com>
Subject Re: [users@httpd] Rewrite Voodoo pt. 2
Date Tue, 19 Jan 2010 19:22:03 GMT
I suggested this:

>> RewriteEngine On
>> RewriteRule  ^(www\.)?domain\.ext/subdomain/(.*)$ subdomain\.domain\.ext/$2
>> [R=301,L]

On 19-Jan-10 10:33, Tom Evans wrote:

> RewriteRules operate over the part of the URL after the host and
> before the query string, so you would be wanting to try out
> RewriteCond.

Totally opaque answer.

> See http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule
> , in particular the section labelled 'What is matched'.



> Cheers
> 
> Tom
> 
> PS:
> 
> Rewrite rule problems generally get solved quicker if you try and
> write them yourself, turn on the RewriteLog and test them against some
> sample URLs. If it doesn't work, providing that information to the
> list will get you more/faster/more accurate responses.
> 
> ---------------------------------------------------------------------
> 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
> 
> 



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