-
-
Save djsakisd/57fa2866509a9ac2da85a42a940bc10f to your computer and use it in GitHub Desktop.
nGINX rewrite rules for whmcs 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location ~ /clients/admin/(client!\.php|client/(.*)|table/(.*)|search!\.php|search/(.*)|apps|billing|setup|user|services|addons|domains|utilitiesemailmarketer!\.php|utilities/(.*)|logs|help!\.php|help/license|modules|image/(recent|upload)|validation_com/(.*))/?(.*)$ { | |
| rewrite ^/(.*)$ /clients/admin/index.php?rp=/admin/$1/$2; | |
| } | |
| location ~ /clients/(images/em|invoice|domain|login|invite|password|account|store|download|knowledgebase|announcements|clientarea/ssl-certificates|user/(verification|accounts|profile|password|security|verify)|cart/(domain/renew)|domain/pricing|cart/order|images/kb)/?(.*)$ { | |
| rewrite ^/(.*)$ /clients/index.php?rp=/$1/$2; | |
| } | |
| location ~ /clients/auth/manage/client/links/?(.*)$ { | |
| rewrite ^/(.*)$ /clients/index.php?rp=/auth/manage/client/links$1; | |
| } | |
| location ^~ /clients/vendor/ { | |
| deny all; | |
| return 403; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment