@Eleg

Правильно ли я настроил .htaccess?

Здравствуйте. Уже несколько дней мучаюсь с .htaccess. Помогите найду ошибки пожалуйста. nwkfBqr
Вот код:

Options All -ExecCGI -Indexes -Includes +FollowSymLinks


RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^potolkirostov.ru
RewriteRule (.*) www.potolkirostov.ru/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ https://potolkirostov.ru/ [R=301,L]
RewriteCond %{HTTP_HOST} ^potolkirostov.ru
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]



SetEnv TZ Europe/Moscow


DirectoryIndex index.html


AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript



mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  • Вопрос задан
  • 53 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы