Question

Does anyone know of a mod_rewrite or similiar that will rewrite cpanel temp urls to remove the tilde so instead of

Posted September 5, 2015 3.2k views
Configuration Management

Removing tilde cpanel temp url
Does anyone know of a mod_rewrite or similiar that will rewrite cpanel temp urls to remove the tilde so instead of

http://server.com/~account

it will be

http://server.com/account

Got the issue after install whm with digitalocean droplet and create a account

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

This question was answered by @jesin:

It is related to mod_userdir do you need this module? If not it can be disabled:

https://documentation.cpanel.net/display/1150Docs/Apache+mod_userdir+Tweak

Change the hostname of cPanel to use a subdomain, something like cp.server.com and also ensure this subdomain’s IP (A record) to point to the Droplet.

https://documentation.cpanel.net/display/ALD/Change+Hostname

Then set the primary domain of your account to server.com. WHM > Modify an Account

Now your website will be accessible at server.com
cPanel will be accessible at cp.server.com:2082 (or 2083 for SSL)
WHM will be accessible at cp.server.com:2086 (or 2087 for SSL)

View the original comment

Submit an Answer