我有.htaccess与短的重写规则像
RewriteRule ^blog/(.+)$ blog_post.php?blogSEOBaslik=$1 [L]
但是有一个页面about.php
包含通过<li><a href="#resume">
命名锚点的子导航。当我应用类似的规则时:
RewriteRule ^about/(.+)$ about.php\#$1 [L]
不像往常一样,标准about.php#resume
锚做。如何在网址重写规则中使用命名锚?
对结果网址使用NE
标志not encoding
:
RewriteEngine On
RewriteBase /BAH/
RewriteRule ^about/(.+)$ about.php#$1 [NE,L,R]
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句