Hi,

I hope this question is in the right forum...I have already installed drupal in www.myoldsite.com/drupal and built a page there. is there any way to buy a new domain name like www.mynewsite.com and make it so that when users go to www.mynewsite.com they will access www.myoldsite.com/drupal?

wordpress has this feature where it just says "Enter the address here if you want your blog homepage to be different from the directory you installed WordPress."

there is hopefully an easy solution...i'm new to this.
thanks for any help!

Comments

dbeall’s picture

You can have a second domain that will point to any location on the internet..
If you get the domain with your host, generally the host control panel will have a Domain control section which will allow you to point the domain at any folder or sub-folder in your account.
If you buy a domain at GoDaddy, they have a pointer setting in their domain control panel that will point it to any place on the web.. in your case it would point to www.myoldsite.com/drupal

treebykooba’s picture

thanks for your help. If I point the domain I purchase from GoDaddy to www.myoldsite.com/drupal and say the users go to a link on the page like www.myoldsite.com/drupal/node/10
will they see the www.myoldsite.com/drupal/node/10 URL or will they see www.newsite.com/node/10?

thanks again!

dbeall’s picture

they will goto www.myoldsite.com/drupal/node/10..

However.. they will not see www.myoldsite.com/ in the URL

They will see just your new pages and the URL will read www.newsite.com/node/10

The pointer will not show any path, just the domain that points to the subdirectory.
BTW, you can have as many as you want like that...
and
you can have a multisite Drupal install in that same directory and point multiple names to the same directory provided you setup multisites.. in

sites/www.newsite.com
sites/www.newsite2.com
sites/www.newsite3.com

http://drupal.org/node/53705 ;multisites structure

dbeall’s picture

There is always more than one way to accomplish a task.

You would have to look at "your host" control panel first..
Many control panels will have a Domain section where you can 'associate' or add a Domain name to the server that is held by any registrar(such as GoDaddy)..
If you do that, then you would use the registrar's(GoDaddy) control panel and add "your hosts" "name servers" to your domain name. such as NS1.myhost.com and NS2.myhost.com
Then in your hosting control panel, add the names to the domain section and point them to the desired directory.

lol.. It's like Drupal, many ways to do things.. Are you hooked yet.. lol

treebykooba’s picture

hi dbeall

thanks for all your help!
so i used addon domains in my cpanel and now when i go to my new domain just a few little parts of the page load...it still loads on the old page fine. i don't know what's going on.
here is the original install which is working:
http://secretmuseum.matterwave.net/drupal
here is the new domain when i go to it (it doesn't have a google maps key so that error comes up but will be easily fixed and that's not the problem because when i put a fresh key in for that domain it still didn't work)
http://www.ithappenedhere.org
and then when any links on that page are clicked on you get a "Page not found"

thanks so much for any help you could give me!!!

jeremy

dbeall’s picture

it looks like the domain pointers are not quite right.. The sites should not show/drupal in the path.
The pointers should point to the subdirectory /drupal

This one should show:
http://secretmuseum.matterwave.net
This one should show:
http://www.ithappenedhere.org

I am not exactly sure how you have things set up...
you also have to check the base URL in settings.php file

EDIT: the google maps key may have to different for subdirectory.. not sure on that.
Maybe the key has to be for the domain name, without the subdirectory.. it's been a long time since I got a key

seuzo’s picture

hi,

if i install my drupal under www.website.com/drupal
will users go to www.website.com see my drupal site?

dbeall’s picture

the uses should be using http://www.website.com/ if you have the domain pointed or redirected to the subdirectory

dbeall’s picture

http://drupal.org/node/348619 ;Cpanel interface section
you may need to use the redirects function to point them to /drupal

if running 2 different sites from the same Drupal install,,
copy the default folder to the same directory.
Then rename each default folder to your domain name(s).

'default' will be renamed to "example1.com" --this one will work as it did and will use the first database.

'copy of default' will be renamed to "example2.com" --this one will use the second database.
open the settings.php and enter the second database info
> $db_url = 'mysqli://username:password@localhost/databasename';
Then run install by going to example2.com

There are basically 2 ways to do it, a shared database(sites that are basically the same)
or separate databases(sites that are different and have different content)

There is lots of info on how do all this on Drupal.org in this section:
http://drupal.org/getting-started/6/install/multi-site
when on that page, look in the left menu block for different pages on the subject.