Latest Added Tutorials
08-12-2016
Add .htaccess file into the root directory if not exist and put following codes:
#path/to/project/.htaccess
# Rewrite all requests to subdirectory, except exists file requests
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /web/$1 [QSA,L]
And then modify .htaccess file in the web folder as follows:
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^app\.php(/(.*)|$) %{...