View file .htaccess

File size: 737B
<Files .htaccess>
order allow,deny
deny from all
</Files>

<Files ~ "includes|local">
   Order allow,deny
    Deny from all
</Files>
<Files ~ ".(dat|priv|prof|sfx)$">
   Order allow,deny
   Deny from all
</Files>

php_value date.timezone "Europe/Moscow"

DirectoryIndex index.php
AddDefaultCharset UTF-8
Options -Indexes

ErrorDocument 403 /pages/index.php?action=403
ErrorDocument 404 /pages/index.php?action=404

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]


# с www на без www
RewriteEngine On 
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301] 

# Скрытие расширения главного index.php
RewriteEngine On
RewriteRule ^index\.php$ / [R=301,L]