antoxxxa-2/derevovdom-new/master/.htaccess - Htaccess File

antoxxxa-2/derevovdom-new/master/.htaccess

<Limit GET HEAD POST PUT DELETE OPTIONS>
   Order Allow,Deny
   Allow from all
</Limit>

php_value max_execution_time 259200

<FilesMatch ".md5$">
    Deny from all
</FilesMatch>

DirectoryIndex index.php
Options -Indexes
# Сomment the following line, if option Multiviews not allowed here
Options -MultiViews

AddDefaultCharset utf-8

<ifModule mod_rewrite.c>
    RewriteEngine On
    # Uncomment the following line, if you are having trouble
    #RewriteBase /

    RewriteCond %{QUERY_STRING} ukey=articals&artical=(d+)(.*)
    RewriteRule ^(.*)$ /articals/%1? [R=301,L]

    RewriteCond %{REQUEST_URI} !.(js|css|jpg|jpeg|gif|png)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [L,QSA]
</ifModule>

<ifModule mod_headers.c>
    <FilesMatch ".(jpg|jpeg|png|gif|js|css)$">
  Header set Cache-Control "max-age=3153600, public"
    </FilesMatch>
</ifModule>

On Github License

Files

Download PDF of Htaccess file
GET, POST, PUT, QUERY_STRING, REQUEST_FILENAME, REQUEST_URI

Comments

Apache