A2 Hosting Forums

Full Version: add-on domain physical location; DreamWeaver, etc.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm interested in setting up an add-on domain. I was told that the add-on domain could be placed something like:

[maindomain.com]/public_html/addondomain/index.htm

... and it would appear as:

addondomain.com

... and my existing main domain would remain as:

[maindomain.com]/public_html/index.htm

maindomain.com

I have maindomain defined on my computer as a Dreamweaver site, and while I'm told that I could 'cloak' the public_html/addondomain/ hierarchy so that it would not be uploaded to the web server (when working on the maindomain site), I have concerns that things like global search and replace in Dreamweaver might cause changes in that addondomain subdirectory (off public_html), as well as the same in unix using recursive search and replace, etc., commands.

I asked if perhaps I shouldn't move my maindomain down a directory (both physically, and having its root defined that way in DNS), like:

/public_html/maindomain/

I tried the following:

--
Move the document root by creating a symbolic link in place of index.htm and have it point to the another directory.

# create a symbolic link to point to the location you want (Where XXXX is the name of the directory you created)

ln -s XXXX/index.html ./index.htm
--

Unfortunately that recipe did not work. The home page worked, but none of the links. It appears the only way a symlink would work would be to create a symlink of the web root, i.e., the "~/public_html/" directory, to, say "~/public_html/maindomain/". Is that correct, or would that not work?

Even if it did work, then if I created my add-on site at "~/public_html/addondomain/", I believe that would resolve to "~/public_html/maindomain/addondomain/", in which case I would not have gained anything.

--

New suggestion:

Add an addon domain parallel to my public_html folder.

Click on my add-on domain icon and add the directory next to the house icon (omit the public_html).

Assuming the permissions are correct, then I shouldn't have anything to worry about, is that right?

Bob
You should be able to create and add-on domain with the document root outside of your public_html folder that would not be affected by global search and replace.  When you create and add-on domain you can specify the path you wish to use.  By default cPanel wants to create the  add-on inside the public_html folder.  Just erase the default path and make the new one ~/addondomain.com instead of ~/public_html/addondomain.com

That should take care of the issue and enable you to manage both domains via Dreamweaver without any interference.  If you have any other questions feel free to submit a ticket at http://support.a2hosting.com  We cannot provide application specific support for Dreamweaver, you might want to check out forums for any information regarding it's functions and features.
Thanks for the confirmation!

Bob
Reference URL's