diff --git a/web/.htaccess b/web/.htaccess new file mode 100644 index 0000000..3120d07 --- /dev/null +++ b/web/.htaccess @@ -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 \ No newline at end of file