Re: Rewrite Voodoo pt. 2

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

 



On Tue, Jan 19, 2010 at 2:42 PM, Peter J Milanese <PMilanese@xxxxxxxx> wrote:
As stated previously, RewriteRule is NOT the proper directive, and does not see the hostname.

RewriteCond will act as a filter for the hostname.
RewriteRule will not accomplish what you want, or whatever we 'think' you want. It does not know anything about hostname.


P


----- Original Message -----
From: Reese [howell.r@xxxxxxxxxxxxxxxx]
Sent: 01/19/2010 05:24 PM EST
To: users@xxxxxxxxxxxxxxxx
Subject: Re: Rewrite Voodoo pt. 2



On 19-Jan-10 17:16, Peter J Milanese wrote:
Have to throw in something here. Tom gave you the right answers. What exactly is 'one of those'?

RTFM is not always the "right" answer to the question asked.

The list is comprised of good questions and answers. Not part time employees :)

My efforts are unpaid as well, you would be correct to think of this
as my foaf effort for a good cause.

My attempt was:

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


I now think this would be better:

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

but I don't know why. Or if it will work. Or why. I'd like to know why.

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


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


I'm pretty sure nobody wants this to turn into a mod_rewrite solve-it-for-me mailing list.

[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