httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reese <>
Subject Re: [users@httpd] Rewrite Voodoo pt. 2
Date Tue, 19 Jan 2010 19:32:51 GMT
It looks like that one escaped before I was finished replying.

My apologies.

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.

Okay, The issue is, links to domain.ext/subdirectoryX/ versus
to the matching sub(.*)X.domain.ext - if that makes more sense
to you.

> See
> , in particular the section labelled 'What is matched'.

Seen it.

In case you were unclear because you weren't here earlier: I'm not
very good with opaque instructions like, read the incomprehensible
manual. Mod_rewrite is voodoo. Cool voodoo, but still voodoo and
no amount of RTFM will suffice when the manual is incomplete.

Help me understand why my suggestion above does not work, I'll
learn from that. I can throw URLs at you, too.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message