AEGIS v3.9 /email BRIDGE FOR FOLDER INSTALLATIONS ================================================== The AEGIS installation folder may have ANY name. Example private installations: public_html/joks/ public_html/vervian/ public_html/a91xk/ The folder name is not included in public links. Public links remain: https://domain.com/email https://domain.com/email/TOKEN If AEGIS is installed inside a folder, place the rules below in: public_html/.htaccess IMPORTANT: 1. Replace AEGIS_FOLDER with the actual installation folder name. 2. Put these rules ABOVE WordPress or other CMS rewrite rules. 3. Do not replace the website's existing rules; add these before them. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^email/?$ AEGIS_FOLDER/engine/root_gate.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^email/([A-Z0-9]{5,20})/?$ AEGIS_FOLDER/engine/root_gate.php?token=$1 [L,QSA] Example only, when the real folder is joks: RewriteRule ^email/?$ joks/engine/root_gate.php [L,QSA] RewriteRule ^email/([A-Z0-9]{5,20})/?$ joks/engine/root_gate.php?token=$1 [L,QSA] The original domain homepage is not changed by these rules.