I have a web application that serves urls such as…
http://domain.com/#!/this-is-a-parameter
I want to redirect from http://domain.com/this-is-a-parameter to my !# version. I know that htaccess can’t redirect to hashes, so my question is:
How do I make htaccess serve a 404 with my js redirect code, without changing the url? All my attempts have resulted in redirection to 404.html, which strips out the necessary data to perform the redirect.
You want this:
You need the
NEso that the hash doesn’t get encoded.