我使用Angular JS
和SEO
目的我将所有抓取请求重定向到静态html页面内容。.htaccess重定向到无限循环
我使用Apache
服务器,以便在.htaccess
文件我已经写:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Googlebot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} facebookexternalhit [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Twitterbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} MetaURI [NC,OR]
RewriteCond %{HTTP_USER_AGENT} mediawords [NC,OR]
RewriteCond %{HTTP_USER_AGENT} FlipboardProxy [NC,OR]
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*?)\/*$
RewriteRule ^(.*)$ snapshots/$1.html [R=301,L]
但它趋于无穷大重定向。
请转到这里:http://www.redirect-checker.org/index.php并输入链接为:http://templatic.net/test/job_category/mobile并选择搜索引擎作为Googlebot
所以它会重定向到这样的:
所以,请帮我制止这种...