MDDHosting Forums: changing add-on domain routing - MDDHosting Forums
Page 1 of 1
changing add-on domain routing
#1
Posted 21 December 2011 - 10:26 PM
If I change the name of the folder that acts as the document root of an add-on domain, is this going to break any scripts (because the path changes, etc)?
ThinkTrade - My Trading Site
#2
Posted 21 December 2011 - 10:52 PM
It shouldn't unless you've set the actual path in a config file somewhere.
Good News: I just saved a bunch of money on my hosting by switching to MDD!
Big Dan on Gemini. Catch me @DanHutter
Big Dan on Gemini. Catch me @DanHutter
#3
Posted 21 December 2011 - 11:04 PM
You mean if I hardcoded an absolute path in a random script somewhere?
ThinkTrade - My Trading Site
#4
Posted 21 December 2011 - 11:47 PM
What about password-protected directories that I renamed? It appears that CPanel was smart enough to keep them protected, but I noticed that the protected directories have htaccess files in them that have the old path coded in them when the directories were initially protected. Is this code just incidental?
ThinkTrade - My Trading Site
#5
Posted 22 December 2011 - 04:49 PM
stocktrader, on 21 December 2011 - 11:04 PM, said:
You mean if I hardcoded an absolute path in a random script somewhere?
Exactly. For instance on my vBulletin forum the attachments directory is hardcoded. It shouldn't be an issue on most scripts.
stocktrader, on 21 December 2011 - 11:47 PM, said:
What about password-protected directories that I renamed? It appears that CPanel was smart enough to keep them protected, but I noticed that the protected directories have htaccess files in them that have the old path coded in them when the directories were initially protected. Is this code just incidental?
.htaccess is what actually does the password protecting. Adding password protection in cPanel simply generates an htaccess for that directory. The path shouldn't be hard coded. You can always just open the file in a text editor and check.
Good News: I just saved a bunch of money on my hosting by switching to MDD!
Big Dan on Gemini. Catch me @DanHutter
Big Dan on Gemini. Catch me @DanHutter
Share this topic:
Page 1 of 1

Help












