Цитата |
---|
Dmitry Ban пишет: Также покажите, пожалуйста, содержимое файла .htaccess в корне сайта. |
Код |
---|
Options -Indexes ErrorDocument 404 /index.php?act=404 php_value max_file_uploads 1000 <IfModule mod_php5.c> php_value register_globals 0 php_flag register_globals 0 php_flag allow_call_time_pass_reference 1 php_flag session.use_trans_sid off php_value mbstring.func_overload 2 php_value mbstring.internal_encoding UTF-8 php_value display_errors 1 </IfModule> php_value displlay_errors 1 Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteCond %{ENV:REDIRECT_FINISH} !^$ RewriteRule ^ - [L] RewriteRule ^catalog/aktsii/(.*)$ aktsii/$1 [R=302] RewriteRule ^aktsii/([^\/]+)[\/]*$ catalog/?sec_code=$1&kind=all&brand=all&aktsii=1 [B,QSA,L] RewriteRule ^aktsii/([^\/]+)/([^\/]+)[\/]*$ catalog/?sec_code=$1&kind=$2&brand=all&aktsii=1 [B,QSA,L] RewriteRule ^aktsii/([^\/]+)/([^\/]+)/([^\/]+)[\/]*$ catalog/?sec_code=$1&kind=$2&brand=$3&aktsii=1 [B,QSA,L] RewriteRule ^aktsii[\/]*$ /?aktsii=1 [B,L] RewriteRule ^catalog/aktsii[\/]*$ catalog/?aktsii=1 [B,QSA,E=FINISH:1] RewriteRule ^catalog\/brand/([^\/]+)[\/]*$ catalog/?sec_code=&kind=all&brand=$1 [B,QSA,E=FINISH:1] RewriteRule ^catalog\/brand/([^\/]+)/([^\/]+)[\/]*$ catalog/?sec_code=&kind=$2&brand=$1 [B,QSA,E=FINISH:1] RewriteRule ^catalog\/([a-z_0-9]+)\/([0-9]+)[\/]*$ catalog/detail/?elemCode=$1&elemId=$2 [E=FINISH:1] RewriteRule ^catalog\/([a-z_0-9]+)\/([a-z_0-9]+)\/([0-9]+)[\/]*$ catalog/$2/$3 [R=302] RewriteRule ^catalog\/([^\/]+)\/all[\/]*$ catalog/$1 [R=302] RewriteRule ^catalog\/([a-z_0-9]+)[\/]*$ catalog/?sec_code=$1&kind=all&brand=all [QSA,L] #Ломает показ страницы товара. #RewriteRule ^catalog/([^/]+)/([^/]+)/all[/]*$ catalog/$1/$2 [R=302] #RewriteRule ^catalog/([^/]+)/([^/^?]+)$ catalog/?sec_code=$1&kind=$2&brand=all [L] #RewriteRule ^catalog/?sec_code=(.*)&kind=(.*)&brand=all$ catalog/$1/$2 [R=302] RewriteRule ^catalog\/([^\/]+)\/([^\/]+)\/([^\/]+)[\/]*$ catalog/?sec_code=$1&kind=$2&brand=$3 [B,QSA,L] RewriteRule ^search[\/]*$ catalog/ [B,QSA,L] #RewriteRule ^catalog[\/]*$ / [R=302] RewriteRule ^auth\/(.*)$ login/$1 [B,QSA,L] #Old site redirects RewriteRule ^t/aktsii[/]*$ aktsii/ [R=302] RewriteRule ^products/([a-z_\-0-9]+)[/]*$ catalog/detail/productsRedirect.php [E=FINISH:1] RewriteRule ^variants/([0-9]+)[/]*$ catalog/detail/variantsRedirect.php [E=FINISH:1] RewriteRule ^t/([a-z_\-0-9]+[/]*[a-z_\-0-9]+)/?s?/?$ catalog/sectionRedirect.php?url=$1 [E=FINISH:1] RewriteRule ^t/([a-z_\-0-9]+[/]*[a-z_\-0-9]+)/s/with_property_value/[^/]*Вид,([^/]*)[/]*$ catalog/sectionRedirect.php?url=$1&kind=$2 [B,E=FINISH:1] #Фильтр по видам RewriteRule ^t/([a-z_\-0-9]+[/]*[a-z_\-0-9]+)/s/with_property_value/[^/]*Бренд,([^/]*)[/]*$ catalog/sectionRedirect.php?url=$1&brand=$2 [B,E=FINISH:1] #Фильтр по брендам RewriteRule ^vacancies[/]*$ vakansii/ RewriteRule ^feedback[/]*$ obratnaya-svyaz/ RewriteRule ^contacts[/]*$ kontakty/ RewriteRule ^news[/]*$ novosti/ RewriteRule ^news/([^/]+)[/]*$ novosti/detail/?code=$1 RewriteRule ^info[/]*$ informatsiya-dlya-pokupateley/ RewriteRule ^info/rules[/]*$ informatsiya-dlya-pokupateley/poryadok-raboty/ RewriteRule ^info/prokat[/]*$ informatsiya-dlya-pokupateley/prokat-instrumenta/ RewriteRule ^info/certificates[/]*$ informatsiya-dlya-pokupateley/sertifikaty/ RewriteRule ^info/beznal[/]*$ informatsiya-dlya-pokupateley/pravila-raboty/ RewriteRule ^info/poddelki[/]*$ informatsiya-dlya-pokupateley/parodii/ RewriteRule ^info/about[/]*$ o-kompanii/ # <IfModule mod_rewrite.c> #RewriteCond %{REQUEST_FILENAME} -f [OR] #RewriteCond %{REQUEST_FILENAME} -l [OR] #RewriteCond %{REQUEST_FILENAME} -d #RewriteCond %{REQUEST_FILENAME} [\xC2-\xDF][\x80-\xBF] [OR] #RewriteCond %{REQUEST_FILENAME} \xE0[\xA0-\xBF][\x80-\xBF] [OR] #RewriteCond %{REQUEST_FILENAME} [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} [OR] #RewriteCond %{REQUEST_FILENAME} \xED[\x80-\x9F][\x80-\xBF] [OR] #RewriteCond %{REQUEST_FILENAME} \xF0[\x90-\xBF][\x80-\xBF]{2} [OR] #RewriteCond %{REQUEST_FILENAME} [\xF1-\xF3][\x80-\xBF]{3} [OR] #RewriteCond %{REQUEST_FILENAME} \xF4[\x80-\x8F][\x80-\xBF]{2} #RewriteCond %{REQUEST_FILENAME} !/bitrix/virtual_file_system.php$ #RewriteRule ^(.*)$ /bitrix/virtual_file_system.php [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_FILENAME} !-l # RewriteCond %{REQUEST_FILENAME} !-d # RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$ RewriteCond %{REQUEST_URI} !/nagios$ RewriteCond %{REQUEST_URI} !/munin$ RewriteCond %{REQUEST_URI} !/server-status$ # RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L] # RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}] </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php index.html </IfModule> <IfModule mod_expires.c> ExpiresActive on ExpiresByType image/jpeg "access plus 3 day" ExpiresByType image/gif "access plus 3 day" </IfModule> |