twisted1919
Administrator
Staff memberAssuming mailwizz is installed in your document root, in a absolute path like: /home/yourdomain/public_html and accessible at http://www.yourdomain.com/
then in /home/yourdomain.com/.htaccess you will put:
then in /home/yourdomain.com/.htaccess you will put:
Code:
# BEGIN rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
# BACKEND APP
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteCond %{REQUEST_URI} ^/backend(/.*)?$
RewriteRule backend/.* backend/index.php
# CUSTOMER APP
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteCond %{REQUEST_URI} ^/customer(/.*)?$
RewriteRule customer/.* customer/index.php
# API APP
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteCond %{REQUEST_URI} ^/api(/.*)?$
RewriteRule api/.* api/index.php
# FRONTEND APP
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule . index.php
</IfModule>
# END rewrite rules