【发布时间】:2009-08-13 17:43:08
【问题描述】:
我想要: http://www.example.com/#test 被重定向到http://www.example.com/test
使用 .htaccess,这可能吗?怎么样?
【问题讨论】:
-
有可能!使用 [NE] 标志。见这里:stackoverflow.com/questions/2285193/…
-
有可能!使用 [NE] 标志:stackoverflow.com/questions/2285193/…
-
@linuxmarc,这仅适用于目标 url,但您显然无法匹配 RewriteRule 中的锚点,因为锚点部分未发送到服务器。
标签: apache .htaccess url-rewriting