Re: Rewrite Voodoo pt. 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule
, 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.

Reese


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux