addon domains keeps adding primary domain in URL

addon domains keeps adding primary domain in URL - .htaccess files are extremely useful in many cases for users who either do not have root permissions or for users who simply aren't comfortable in making changes in their web server's configuration file. Trying to debug .htaccess not working isn't always the easiest thing to do, however, hopefully by checking the discuss below mentioned about linux, htaccess, dns, cpanel, .htaccess common problems as well as the troubleshooting tips, you'll have a better grasp on what you may have to modify to get your .htaccess file running smoothly.Problem :


I took new vps plan from inmotionhosting.com and moved my host from previous hosting company. I have several cpanel accounts in the whm, imported them all using the migration tool from server to server.



After many attempts, only primary domain from each account works ok, any addon domain in any cpanel account adds the of the primary add in the URL when visited from the browser, which is very strange, I suspect the dns zone but nobody could help even from the company support.



Example:
Cpanel account: 'primary'
Primary domain: primary.com
Addon domain in same account 'primary' = addon.com



Whenever add new folder or file in new.com: suppose be:
http://addon.com/folder



Opening it in browser, directly goes to:
http://addon.com.primary.com/folder



Opening it in browser for files, says:
http://addon.com.primary.com/folder/text.txt



But don't work, for sure it shows can't reach to host...



If remove the additional primary link and press enter sometimes it works...



I tried removing all cache and tried from different pc which never used on these sites, all similar... also checked if any htaccess exist, but none...



Anybody has any clue?


Solution :

your best deal is to contact inmotion hosting support team if its a managed VPS , if its not then check the settings in Domains tab under Tweak settings in WHM.


Additionally, if you would like to do some further testing, give the htaccess tester tool a try. It allows you to specify a certain URL as well as the rules you would like to include and then shows which rules were tested, which ones met the criteria, and which ones were executed.

Comments

Popular posts from this blog

Rewrite in Mediawiki, remove index.php, .htaccess

.htaccess rewrite wildcard folder paths from host

Using .htaccess to set a cookie and 301 redirect