Eldamartwilight/ecocompany_local/master/.htaccess - Htaccess File

Eldamartwilight/ecocompany_local/master/.htaccess

Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.ecocompany.ru$ [NC]
RewriteRule ^(.*)$ http://ecocompany.ru/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www.([A-Za-z_-]*).ecocompany.ru [NC]
RewriteRule ^(.*)$ http://%1.ecocompany.ru/$1 [R=301,L]

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php

AddDefaultCharset utf-8

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME

Comments

Apache