Jump to content
  • 0

настройка htacess


apexis
 Share

Question

Стоял редирект с lidomed.com.ua на алиас parkes.org.ua в htaccess. Теперь я удалил этот редирект, но в опере и хроме редирект остался. Как это исправить?

AddDefaultCharset windows-1251

RewriteEngine on
#RewriteCond %{HTTP_HOST} ^www\.
#RewriteRule ^(.*)$ http://lidomed.com.ua/$1 [R=301,L]

RewriteCond %{THE_REQUEST} /index\.php
RewriteRule ^index.php$ http://%{HTTP_HOST}/ [R=301,L]

RewriteCond %{THE_REQUEST} /index\.html
RewriteRule ^index.html$ http://%{HTTP_HOST}/ [R=301,L]

RewriteCond %{THE_REQUEST} /lechenie\.html [OR]
RewriteCond %{THE_REQUEST} /contacts\.html [OR]
RewriteCond %{THE_REQUEST} /opisanie\.html [OR]
RewriteCond %{THE_REQUEST} /diagnostika\.html
RewriteRule ^(.*).html$ http://%{HTTP_HOST}/tree/$1.php [R=301,L]

RewriteCond %{THE_REQUEST} /ostriti\.php
RewriteRule ^(.*).php$ http://%{HTTP_HOST}/main/ostrizi.php [R=301,L]

RewriteCond %{THE_REQUEST} (.*)\.html
RewriteRule ^(.*).html$ http://%{HTTP_HOST}/main/$1.php [R=301,L]


RewriteCond %{THE_REQUEST} /trixomoniaz\.html
#RewriteCond %{THE_REQUEST} /diagnostika\.html
RewriteRule ^(.*).html$ http://%{HTTP_HOST}/main/$1.php [R=301,L]

RewriteCond %{HTTP_HOST} ^lidomed.com.ua$ [OR]
RewriteCond %{HTTP_HOST} ^lidomed.com.ua$
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
<Files "\.(inc|jpg)$">
order allow,deny
deny from all
</Files>


<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component


<FilesMatch "\.(ttf|otf|eot|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

Проблему решил - почистил кэш браузера.

Edited by apexis
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy