httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] ModRewrite Help
Date Thu, 21 Jan 2010 01:40:55 GMT
On Wed, Jan 20, 2010 at 7:57 PM, Drew Tomlinson <drew@mykitchentable.net> wrote:
> Eric Covener wrote:
>>
>> On Wed, Jan 20, 2010 at 6:24 PM, Drew Tomlinson <drew@mykitchentable.net>
>> wrote:
>>
>>>
>>> RewriteRule ^/(.*)         http://www.alchemistswarehouse.com/$1 [R]
>>>
>>> I have tried putting this code in my .htaccess file in different places
>>> but
>>> it doesn't seem to have any effect.  I've even removed the "L" flag from
>>> the
>>>
>>
>>
>> This rule is a no-op in htaccess.  In htaccess, the string you're
>> comparing to never has a leading slash -- the entire rewritebase is
>> stripped off  ("/" is stripped off in the DocumentRoot, for example)
>>
>
> Thanks for your reply. So is there any way to do what I want with .htaccess?

Yes, just use ^(.*) without the /, and make sure your htaccess is
being read at all (AllowOverride)


>
> Cheers,
>
> Drew
>
> ---------------------------------------------------------------------
> 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
>
>



-- 
Eric Covener
covener@gmail.com

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