Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddDefaultCharset UTF-8
- RewriteEngine On
- RewriteBase /
- #убираем лишние слеши
- RewriteCond %{REQUEST_URI} ^(.*?)\/{2,}(.*?)$
- RewriteRule . %1/%2 [L,R=301]
- RewriteCond %{THE_REQUEST} //
- RewriteRule .* https://%{HTTP_HOST}/$0 [R=301,L]
- #daca linkul nu are slash la sfarsit il adaugam
- RewriteCond %{REQUEST_URI} !\?
- RewriteCond %{REQUEST_URI} !\&
- RewriteCond %{REQUEST_URI} !\=
- RewriteCond %{REQUEST_URI} !\.
- RewriteCond %{REQUEST_URI} ![^\/]$
- RewriteRule ^(.*)\/$ /$1 [R=301,L]
- RewriteCond %{HTTPS} on
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
- RewriteCond %{HTTP_HOST} www.daac-hermes.ilab.studio
- RewriteRule ^ https://daac-hermes.ilab.studio%{REQUEST_URI} [R=301,L]
- RewriteCond $1 !^(index\.php|images|export|static|robots\.txt|pngfix\.js|css|js|ckeditor|kcfinder|public|app|phpThumb|favicon.\ico|jscripts|upload-files|img|libs|fonts|kjs|kcss)
- #RewriteRule ^.*sitemap\.xml$ index.php/sitemap [L]
- RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
- # php -- BEGIN cPanel-generated handler, do not edit
- # Set the “ea-php73” package as the default “PHP” programming language.
- <IfModule mime_module>
- AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
- </IfModule>
- # php -- END cPanel-generated handler, do not edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement