apache - htaccess redirect IE to subfolder -
i want redirect ms ie6-8 go /ie/$1 on same domain getting endless redirect loop, la: mydomain.com/ie/ie/ie/ie/... added line rewritecond %{request_uri} !^/ie/, did not help. insight? htaccess file: (it's angular app redirects search engines templates in /seo folder. left in here completeness in case makes difference)
options +followsymlinks rewriteengine on rewritebase / # angular routes pointing same index file rewriterule ^home /index.html [nc,l] rewriterule ^page1 /index.html [nc,l] rewriterule ^page2 /index.html [nc,l] # ie templates rewriterule ^ie/(.*)$ /ie/$1_tpl.html [nc,l] #ie redirect rewritecond %{request_uri} !^/ie/ rewritecond %{http_user_agent} "msie [6-8]" [nc] rewriterule ^(.*)$ /ie/$1 [r=301,l] #seo redirects rewritecond %{query_string} ^_escaped_fragment_=/?(.*)$ rewriterule ^(.*)$ /seo/%1_seo.html? [nc,l] apache .htaccess mod-rewrite redirect
No comments:
Post a Comment