Answer the question
In order to leave comments, you need to log in
How to disable infinite redirect?
In my server settings
RewriteRule ^(.*\.css)$ http://%{HTTP_HOST}/site/$1 [R,L]
http://domain/site/css/styleN.css
http://domain/site/site/site/site/site/site/site/site/site/site/site/site/site/site/site/site/site/site/site/site/site/css/style.css
RewriteRule http://%{HTTP_HOST}/^(.*\.css)$ http://%{HTTP_HOST}/site/$1 [R,L]
Answer the question
In order to leave comments, you need to log in
After applying Rewrite, the file is reopened with a new URL (changed), you need to make sure that the result with the changed URL does not fall under the replacement rule.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question