On Wed, Jan 20, 2010 at 7:57 PM, Drew Tomlinson <d...@mykitchentable.net> wrote:
> Eric Covener wrote:
>>
>> On Wed, Jan 20, 2010 at 6:24 PM, Drew Tomlinson <d...@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-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
Eric Covener
cove...@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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to