3 ms·
can't they just do a one-line .htaccess regex replace? or is it more complicated than that?
by joshuahedlund 15y ago
can't they just do a one-line .htaccess regex replace? or is it more complicated than that?
- tkaemming 15y agoThe redirection has to be done on the client-side, because the server never receives the fragment identifier as part of the URL.
- simonw 15y agoNope, because anything after the # isn't included in the HTTP GET request made to the server - so a .htaccess-level redirection won't see it. You have to execute actual JavaScript on the client to read and redirect the #! bit.
- deleted 15y ago[deleted]
- sirclueless 15y agoThat is the fundamental problem with hashbangs: the server receives "GET / HTTP/1.1" and the client uses javascript to render the hashbang. The server has no idea a hashbang is present until after it sends javascript to run client-side.
- deleted 15y ago[deleted]