Answer the question
In order to leave comments, you need to log in
.htaccess is the problem. How to decide?
Hello . There are rules at the start of hitaches
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteCond %{ENV:REDIRECT_STATUS} !^$
RewriteRule .* - [L]
RewriteCond %{HTTP_HOST} (www\.)?(.*)\.сайт\.ru$
RewriteRule ^(.*)(/(.*)/)?$ index.php?smgeo=%2 [L]
Answer the question
In order to leave comments, you need to log in
L в секции rewrite rule означает "last" , т.е последний.
Если правило срабатывает, то последующие уже не выполняются.
Надо задать количество циклов [E=FINISH:1]
А вообще лучше в апаче подключить логи и смотреть что там преобазовывается
RewriteCond %{ENV:REDIRECT_FINISH} !^$
RewriteRule ^ - [L]
RewriteRule ^(.*)\.(css|js)$ assets/$2/$1.$2 [E=FINISH:1]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question