forked from 4sidora/Bagira.CMS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
27 lines (19 loc) · 763 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
php_value display_errors 1
php_value error_reporting 2047
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/mpanel
RewriteRule ^(.+)/$ /$1 [R=301,L]
#RewriteRule glavnaya-stranitsa$ / [L,R=301]
#RewriteCond %{HTTP_HOST} ^www.yourdomain.ru$ [NC]
#RewriteRule ^(.*)$ http://yourdomain.ru/$1 [R=301,L]
#RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
#RewriteRule ^index\.php$ http://yourdomain.ru/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^robots\.txt$ index.php?way=%{THE_REQUEST} [L]
RewriteRule ^sitemap\.xml$ index.php?way=%{THE_REQUEST} [L]
RewriteRule ^([^\.]*)$ index.php?way=%{THE_REQUEST} [L,QSA]
<FilesMatch "\.(log|rar|sql|zip|tar|gzip)$">
Order allow,deny
Deny from all
</FilesMatch>