URL rewriting with a hash

霸气de小男生 提交于 2019-12-24 16:00:20

问题


So, I am new to url rewriting, and was wondering if it is possible to rewrite the url when a hash comes into play. For instance, I have the following URL:

http://testdomain.com/#/test.php

Is there a way to rewrite this to:

http://testdomain.com/index.php?url=test.php

I am not sure whether the hash effectively makes this 'invisible' on the php side. I tried to capture the request URL this way, and it does not read anything from the hash on.


回答1:


After reading more up on this, I have found it not to be possible, as the hash is not sent to the server, and is client side only.



来源:https://stackoverflow.com/questions/7240212/url-rewriting-with-a-hash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!