Report this

What is the reason for this report?

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

Posted on September 5, 2015

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.