Current Path : /var/www/axolotl/data/www/axolotl.ru/www/ |
Current File : /var/www/axolotl/data/www/axolotl.ru/www/.htaccess.prod |
Options -Indexes ErrorDocument 404 /404.php SetEnv BITRIX_VA_VER "7.4.3" php_value session.gc_maxlifetime 10800 <IfModule mod_php5.c> php_flag session.use_trans_sid off #php_flag default_charset UTF-8 #php_value display_errors 1 </IfModule> <IfModule mod_php7.c> php_flag session.use_trans_sid off #php_flag default_charset UTF-8 #php_value display_errors 1 </IfModule> <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On #ErrorDocument 503 /maintenance.html #RewriteBase / # uncomment and set your ip to allow your ip to enter #RewriteCond %{REMOTE_ADDR} !176.59.14.99 #RewriteCond %{REMOTE_ADDR} !127.0.0.1 #RewriteCond %{REMOTE_ADDR} !82.146.55.168 # block requests to site, but allow let's encypt generation #RewriteCond %{REQUEST_URI} !well-known # allow maintenance page itself #RewriteCond %{REQUEST_FILENAME} !maintenance.html # show 503 for every request #RewriteRule .* /maintenance.html [R=503,L] #www,http -> без www,https RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR] RewriteCond %{HTTP_HOST} !^axolotl.ru [NC] RewriteRule (.*) https://axolotl.ru%{REQUEST_URI} [R=301,L] #index.php to / RewriteRule ^(.*)index\.(html|php)$ http://%{HTTP_HOST}/$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_URI} ^(.*)/{2,}(.*)$ #RewriteRule . %1/%2 [R=301,L] #RewriteCond %{THE_REQUEST} ^(?:GET|POST)\ //+([^\ ]*) #RewriteRule .* http://%{HTTP_HOST}/%1 [R=301,L] #RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ #RewriteRule . %1/%2 [R,L] RewriteCond %{THE_REQUEST} // RewriteRule .* /$0 [R=301,L] # ASPRO_ROBOTS Serve robots.txt with robots.php only if the latter exists RewriteCond %{REQUEST_FILENAME} robots.txt RewriteCond %{DOCUMENT_ROOT}/robots.php -f RewriteRule ^(.*)$ /robots.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>