Production Deployment - mvaghela/zim GitHub Wiki
.htaccess file
This file can reside under any of the directory, sub-directory. Lets say /development/.htaccess
. In this case, development will access and follow instructions mentioned under /development/.htaccess file.
But for Production Deployment,
.htaccess file needs to at root level i.e. /.htaccess
This file will be picked up by the production server to link it with DNS name and apply instructions mentioned under /.htaccess
file.
Below stuff needs to mentioned under .htaccess
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?zimba-customtailor.com$
RewriteCond %{REQUEST_URI} !^/production/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /production/$1
RewriteCond %{HTTP_HOST} ^(www.)?zimba-customtailor.com$
RewriteRule ^(/)?$ production/index.php [L]