开发者

URL rewriting with a hash

开发者 https://www.devze.com 2023-04-01 11:41 出处:网络
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:

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 'invisib开发者_JS百科le' on the php side. I tried to capture the request URL this way, and it does not read anything from the hash on.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消