开发者

Rewritten URL should contain #. How can I resolve this?

Actually I want to rewrite URL through .htaccess.

My actual URL is

front/property/uploadphotos开发者_运维问答_pid.php?pid=11#NO 

I want to convert this to

uploadphotos_pid/11/NO.php

and have written following code:

RewriteRule ^uploadphotos_pid/([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+).php$ 
front/property/uploadphotos_pid.php?pid=$1&#=$2


The fragment identifier (the section of a URI starting with #) is handled entirely client side. It is not sent to the server. The server (which is where mod_rewrite runs) therefore cannot do anything with it.


# must be escaped as %23 in a URL

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜