Customized URL

You are currently watching the v2 legacy branch documentation.

Customized URL


Using .htaccess you can rewrite the url location used by SoluteDNS to a custom value.

To enable custom URL’s add the following code to your .htaccess file which can be found in the root WHMCS installation directory.

# SoluteDNS
RewriteRule ^dnsmanager/([0-9]+)([^/]*)$ ./index.php?m=solutedns&id=$1 [L,NC]
RewriteRule ^dnsmanager$ ./index.php?m=solutedns [L,NC]
RewriteRule ^dnsmanager/dologin.php ./dologin.php [L,NC]

You can change “dnsmanager” to a value you like to use.

After you have changed the .htaccess file you have to enable customized url’s in SoluteDNS. In the admin area visit the: Settings -> Accessibility tab. At the “Rewrite client area URL” field add the chosen name, in the example “dnsmanager” and click “Save Changes”.

Please note if the .htaccess file isn’t set correctly this step will break the client area functionality of SoluteDNS. To disable the rewritten URL’s please leave the “Rewrite client area URL” field empty.

Example:

index.php?m=solutedns = /dnsmanager
index.php?m=solutedns&id=10 = /dnsmanager/10