【发布时间】:2015-05-02 21:01:07
【问题描述】:
我有以下 Apache url 重写规则
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/?(.*)$
RewriteRule ^(.*)$ /snapshots/%1? [NC,L]
[来源:http://www.yearofmoo.com/2012/11/angularjs-and-seo.html#detecting-the-search-engine]
这些网址在升级到 Apache 2.4.7 之前有效。 (我不确定我有哪个版本)。现在它总是在查询字符串中使用?_escaped_fragment=/ 时加载主页。任何人都知道如何修复到 Apache 2.4.7
更新
目录结构
/.htaccess
/index.php
/partials/
/snapshots/
/css/
/js/
【问题讨论】:
标签: apache .htaccess mod-rewrite seo