Last active
March 31, 2021 15:52
-
-
Save andrei99/ae155b10185e974c27eb94f59c426b2d to your computer and use it in GitHub Desktop.
.htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
Options +FollowSymLinks | |
RewriteEngine On | |
#redirect http->https, www->empty, index.php->empty | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ | |
RewriteRule ^index\.php$ https://hotel-shanell.ru/ [R=301,L] | |
RewriteRule ^(.*)=(.*) /$1$2 [L,R=301] | |
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] | |
RewriteCond %{HTTPS} =off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L] | |
#redirect http->https, www->empty, index.php->empty | |
#redirect /path_link/?PAGEN_1=1 to /path_link/ | |
RewriteCond %{QUERY_STRING} ^PAGEN_1=1 | |
RewriteCond %{REQUEST_URI} ^/catalog/(.*)/$ | |
RewriteRule ^(.*)$ https://zamkiprof.ru/$1? [R=301,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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment