Короче какая-то фигня не могу понять.
есть домен, сайт лежит в папке домена, то есть урл такой
domain.ru/test/
сайт с шаблоном advanced
вообщем все ссылки работают. Только при переходе по урл
domain.ru/test
в адресной строке рисуется
domain.ru/test/frontend/web
на странице отрисовывается layout и 404.
если пишу domain.ru/test/site/index
то нормально работает. по ссылкам тоже нормально переходит все.
вообщем, чет не могу сообразить второй день туплю.
Подскажите гуру программирования!
htaccess
Код: Выделить всё
<IfModule mod_rewrite.c>
Options -Indexes
Options +FollowSymlinks
AddDefaultCharset UTF-8
RewriteEngine On
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# the main rewrite rule for the frontend application
RewriteCond %{REQUEST_URI} !^/test/(frontend/web|backend/web|admin)
RewriteRule ^(.*) /test/frontend/web/$1 [L]
# redirect to the page without a trailing slash (uncomment if necessary)
#RewriteCond %{REQUEST_URI} ^/test/admin/$
#RewriteRule ^(admin)/ /test/$1 [L,R=301]
# the main rewrite rule for the backend application
RewriteCond %{REQUEST_URI} ^/test/admin
RewriteRule ^admin(.*) /test/backend/web/$1 [L]
# if a directory or a file of the frontend application exists, use the request directly
RewriteCond %{REQUEST_URI} ^/test/frontend/web
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward the request to index.php
RewriteRule . /test/frontend/web/index.php [L]
# if a directory or a file of the backend application exists, use the request directly
RewriteCond %{REQUEST_URI} ^/test/backend/web
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward the request to index.php
RewriteRule . /test/backend/web/index.php [L]
RewriteCond %{REQUEST_URI} \.(htaccess|htpasswd|svn|git)
RewriteRule \.(htaccess|htpasswd|svn|git) - [F]
</IfModule>