Цитата |
---|
Роман Семёнов написал: вот вы добавили проверку. |
18.08.2016 15:11:54
|
|||
|
|
25.08.2016 10:32:26
Сделал вот так:
|
|||||||
|
|
02.09.2016 10:05:00
Я немного ошибся, нужно сделать вот так:
|
|||||||||
|
|
05.09.2016 16:23:56
По итогу у меня получилось следующее:
|
|||
|
|
29.03.2017 10:09:18
Здравствуйте!
Вот такая проблема. В панели администратора. При нажатии Настройка - Переиндексация выдается 404 ошибка. Битрикс режет ссылку. Вместо /bitrix/admin/search_reindex.php получается /bitrix/admin/search_re/ Подскажите, как настроить .htaccess, что бы этого не происходило. Сейчас .htaccess такой Options -Indexes ErrorDocument 404 /404.php <IfModule mod_php5.c> php_flag session.use_trans_sid off #php_value display_errors 1 #php_value mbstring.internal_encoding UTF-8 php_value mbstring.internal_encoding WINDOWS-1251 </IfModule> <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^(.*)$ RewriteCond %{REQUEST_URI} ^(.*)index\.php$ RewriteRule ^ %1 [R=301,L] RewriteCond %{REQUEST_URI} ^(.*)index\.html$ RewriteRule ^ %1 [R=301,L] RewriteCond %{REQUEST_URI} !\? RewriteCond %{REQUEST_URI} !\& RewriteCond %{REQUEST_URI} !\= RewriteCond %{REQUEST_URI} !\. RewriteCond %{REQUEST_URI} !\/$ RewriteRule ^(.*[^\/])$ /$1/ [R=301,L] 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$ 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" ExpiresByType image/png "access plus 3 day" ExpiresByType text/css "access plus 3 day" ExpiresByType application/javascript "access plus 3 day" </IfModule> |
|
|
|
29.03.2017 10:21:37
Так попробуй
RewriteCond %{REQUEST_URI} ^(.*)index\.php$ RewriteCond %{THE_REQUEST} !bitrix/* RewriteRule ^ %1 [R=301,L]
Мой Блог -
|
|||
|
|
29.03.2017 16:04:03
|
|||||
|
|
26.03.2018 18:02:27
и все же как сделать нормальный 301 редирект с index.php на / ? я сделал но в корзину на отказ не доавляються товары
|
|
|
|
27.03.2018 05:15:16
|
||||
|
|
|||