migvitram/prod_catalogue_yii2/master/www/.htaccess - Htaccess File

migvitram/prod_catalogue_yii2/master/www/.htaccess

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]

RewriteRule ^(.*) /index.php [QSA,L]

</IfModule>

# code above was in our site   Tigo

#RewriteEngine On
#RewriteBase /
#RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#
#RewriteCond %{REQUEST_FILENAME} -f
#RewriteRule ^(.*) $1 [L]
#
#RewriteRule ^(.*) /index.php [QSA,L]

addDefaultCharset UTF-8

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME

Comments

Apache