目录的htaccess重写规则包含"#!"

时间:2014-04-29 09:40:08

标签: apache .htaccess mod-rewrite url-rewriting rewrite

在磁盘上有这样的路径:/ www / snapshots /#!/ contact / index.html

需要制作适用于"#!"的重写规则。 。目录

我有此规则适用于目录 /www/snapshots/contact/index.html ,但我不知道如何使其与目录名&#一起使用34;#"!

RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$
RewriteCond %{REQUEST_URI} !^/snapshots/ [NC]
RewriteRule ^(.*)/?$ /snapshots/%1 [L]

0 个答案:

没有答案
相关问题