Apache .htaccess for mailwizz

twisted1919

Administrator
Staff member
Assuming 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:

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
 
I added the .htaccess - the one supplied by the app (backend/index.php/settings/index) and it broke the app.

Not Found

The requested URL /backend/guest/index was not found on this server.

Same is for /customer/

Note: app is hosted on a subdomain
ex: apps.domain.com/backend/guest/index and /customer/ etc

Please advice thanks
 
I'm playing around with .htaccess to exclude some folders/paths from HTTPS. I know of these 3 paths that are used for tracking/web versions & etc.

lists
campaigns
frontend

Are there any other paths/folders that are used for subscribers to browse to?

Thanks

Rob
 
There's also /dswh which is the entry point to receive webhooks notifications, and that's all i think.
/frontend doesn't exists, it's just a redirect.
 
what if i installed in a subdomain. do i need to create another .htaccess file inside subdomain folder?
bcs i have change the .htaccess file but still in a errorr
 
Is this still uptodate?
And if so, why is this not in the install file zip (codecanyon-...-mailwizz-email-...app....zip)?
Are there other security tips & tricks to head?
thx :)
 
@frm.mwz - In backend -> settings-> common when you enable clean urls, you get a button to automatically generate the .htaccess, so use that and write that .htaccess as needed ;)
 
Back
Top