jaiksit
By:
jaiksit

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

September 5, 2015 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
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

Have another answer? Share your knowledge.