wwwroot/#Index/Index/index.html
就要转为
wwwroot/Index/Index/index.html
来请求服务器
也就是说忽略掉URL中的#号
#号固定出现在域名/的后面
我用的是ThinkPHP的框架
付一个原来的Rewrite文件:
<IfModule mod_rewrite.c>
Options +FollowSymli
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
急求大神!
最佳答案