I want to redirect a URL containing a hash to another URL.
Example: example.com/#test should redirect to example.com/teste_page
Can this be done using the .htaccess file?
Yes it can be done, just use the No Escape flag... [NE,R,L]
No, hashes are never sent to the server, they are in-page fragment identifiers, so only used by the browser. So you're .htaccess would never have access to the hash. You'd have to do some nifty redirects to get that info to your server.
Here are some ideas that might spark something:
http://forum.modrewrite.com/viewtopic.php?t=3912
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With