added .htaccess

This commit is contained in:
cornernote 2015-08-08 04:16:13 +09:30
parent fe002097f3
commit 7317bb4a1b

17
web/.htaccess Normal file
View File

@ -0,0 +1,17 @@
allow from all
#Options +FollowSymLinks
IndexIgnore */*
RewriteEngine On
# Redirect all traffic from www.example.com to example.com
### RewriteCond %{HTTP_HOST} ^www.example.com [nocase]
### RewriteRule ^(.*) http://example.com/$1 [last,redirect=301]
# 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