Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1735 hosting providers

Questions & Answers

Stopping cPanel redirects for subfolders and subdomains

Dec 24, 2013 by ross
I want to stop cPanel’s redirecting to my subfolders and subdomain since it’s causing me some issues. I want to block the subdomains cpanel and whm and the subfolders /cpanel and /whm
How can I disabled this feature?
Any suggestions are welcome

1 Answer

0 votes
Dec 24, 2013 by expert
You can do this by disabling the option "Proxy subdomains". From your WHM home go to Server Configuration->Tweak Settings and choose the Domains tab  and disable Proxy subdomains.

Also you can remove the "ScriptAliasMatch" entries for your /cpanel and  /whm from the file httpd.conf  under /usr/local/apache/conf/ .