Martin
Martin

Reputation: 5297

.htaccess - redirect anchor link

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

With .htaccess, is that possible? How?

Upvotes: 3

Views: 1865

Answers (1)

Amber
Amber

Reputation: 526493

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/

Upvotes: 4

Related Questions