This commit is contained in:
isohuntto 2014-12-19 17:55:57 +03:00
parent 854c5b6e7e
commit 0c03d2498b
3400 changed files with 853482 additions and 0 deletions

22
conf/example.htaccess Normal file
View file

@ -0,0 +1,22 @@
# Part 1. ".htaccess" for CPanel under src folder
RewriteEngine on
RewriteBase /
RedirectMatch 403 /\..*$
RewriteRule ^(.*)$ /src/www/$1
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^/src/www/(.*)$ /src/www/index.php?r=main/$1 [L]
# Part 2. ".htaccess" for application under src/www folder
RewriteEngine on
RedirectMatch 403 /\..*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php