php - What is wrong with this .htaccess? Too many redirects on Safari -


can pls me .hatcess has problem?

rewriteengine on  rewriterule \.(css|jpeg|jpg|gif|png|js|json|eot|svg|ttf|woff|txt|xml|ico)$ - [l] rewriterule . core/frontcontroller.class.php [l]  rewritebase / rewritecond %{http_host} ^www\.(.*)$ [nc] rewriterule ^(.*)$ http://%1/$1 [r=301,l]  redirect 301 /index http://eese.com 

the problem: safari says have many redirects (just go http://eese.com)

don't use redirect rule mod_rewrite rules. change .htaccess to:

rewriteengine on rewritebase /  rewritecond %{http_host} ^www\.(.+)$ [nc] rewriterule ^(.*)$ http://%1/$1 [r=301,l]  rewriterule ^index/?$ / [l,r=301,nc]  rewriterule \.(css|jpeg|jpg|gif|png|js|json|eot|svg|ttf|woff|txt|xml|ico)$ - [l] rewriterule . core/frontcontroller.class.php [l] 

test out after clearing browser cache.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -