RewriteRule causes page to reload twice

后端 未结 3 1875
傲寒
傲寒 2020-12-07 02:04

I shaped two different RewriteRules for my page:

# Enable URL Rewriting
RewriteEngine on

# exclude followed stuff
RewriteRule ^(js|img|css|favicon\\.ico|ima         


        
3条回答
  •  孤城傲影
    2020-12-07 02:33

    I had the same problem, caused because I did some url rewriting, and the script was being loaded twice, due to the fact that i did not add this:

    RewriteRule ^(js|img|css|favicon\.ico)/ - [L,QSA,S=2]
    

    This will stop the script from being loaded twice; it solved my problem.

提交回复
热议问题