On Wed, Jan 20, 2010 at 7:57 PM, Drew Tomlinson <[email protected]> wrote: > Eric Covener wrote: >> >> On Wed, Jan 20, 2010 at 6:24 PM, Drew Tomlinson <[email protected]> >> 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: [email protected] > " from the digest: [email protected] > For additional commands, e-mail: [email protected] > > -- Eric Covener [email protected] --------------------------------------------------------------------- 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: [email protected] " from the digest: [email protected] For additional commands, e-mail: [email protected]
