[Techtalk] Moving Websites: 301 Redirect
susanstones at bigpond.com
Fri Jun 4 02:41:56 UTC 2010
Sheila, I think I replied to you privately rather than the list, last
time. Sorry about that.
I am still to get page redirects to work. I am not sure what I am
trying to match,
Does HTTP_HOST match the whole URL or just the domain name? HTTP_URI
apparently matches more than I want.
Sheila Fenelon wrote:
> Sue Stones wrote:
>> A simple rewrite that works is
>> RewriteRule ^(.*)$ http://www.redcockatooaustralia.com/ [L,R=301]
>> But when I try to duplicate this approach with something like the
>> following not much happens
>> RewriteRule ^(.*)/artists\.php\#artsec$
>> http://www.redcockatooaustralia.com/artists/elly-chatfield/$ [L,R=301]
> Clicking on an anchor like #artsec is handled by the browser. They don't
> result in a request being send back to the server, so your RewriteRule
> will never be invoked.
> Techtalk mailing list
> Techtalk at linuxchix.org
More information about the Techtalk