views:

373

answers:

2

I want: http://www.example.com/#test to be redirected to http://www.example.com/test

With .htaccess, is that possible? How?

+3  A: 

Anchors are not sent to the server as part of a request, so no, you cannot redirect based on them.

http://www.mikeduncan.com/named-anchors-are-not-sent/

Amber
Oh, sad but good to know! Thanks!
Martin
A: 

Is it possible to redirect the other way, to only a single anchor?

So URL = http:// www.example .com/video/{title}

always gets sent to

http:// www.example .com/video.php?title={title}#player

The only thing that changes is the title...

Graham