Hi all,
I want to set up one hosting account and access it via multiple domain names. Each different domain name will server the user slightly different content without the user knowing about the other domains. How do i do this?
Example: User comes to my hosting account via http://www.siteA.com. The whole time the user is on the site the base URL never changes from http://www.siteA.com. The user needs to see http://www.siteA.com/page1.php as so on. (Actually i plan to use ModRewrite to alter the page name, but that comes later.) Now when another user comes to http://www.siteB.com they need go to the same hosting account and see the site as if they have no clue about http://www.siteA.com, just with some different content.
Tested: I have tried using a .htaccess Symlink, but this will not work as it just redirects like a 301. Similar with CNAME's at my registrar.
Tested: Frame Forwarding via hosting account. This doesn't work since the forwarded URL doesn't change from the base URL. Meaning, http://www.siteA.com never changes to http://www.siteA.com/page1.php. Also any links show the forwarded to's URL in the status bar.
I hope my detail in description has been enough and someone has a great suggestion for me. Thanks much.
CEsar
Using Mulpitle Domains for One Hosting Account
Moderator: General Moderators
-
cesarcesar
- Forum Contributor
- Posts: 111
- Joined: Mon Oct 18, 2004 3:28 pm
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Using Mulpitle Domains for One Hosting Account
Do you want 2 sites on the same hosting account under different domains and are completely different? i.e siteA.com is about cars and siteB.com is about movies
Or 2 different sites accessing the same database?
Or 2 different sites accessing the same database?
Re: Using Mulpitle Domains for One Hosting Account
Your server's control panel should allow you to do this easily. In cPanel it is called 'parked domains', and there are probably equivalents in every control panel package.I want to set up one hosting account and access it via multiple domain names. Each different domain name will server the user slightly different content without the user knowing about the other domains. How do i do this?
-
cesarcesar
- Forum Contributor
- Posts: 111
- Joined: Mon Oct 18, 2004 3:28 pm
Re: Using Mulpitle Domains for One Hosting Account
Yes, serving "mostly" the same info.Or 2 different sites accessing the same database?
-
cesarcesar
- Forum Contributor
- Posts: 111
- Joined: Mon Oct 18, 2004 3:28 pm
Re: Using Mulpitle Domains for One Hosting Account
Wont this only redirect? Ie, http://www.siteB.com will reload to http://www.siteA.com?pytrin wrote:it is called 'parked domains'
Re: Using Mulpitle Domains for One Hosting Account
Not redirect, use the same IP address. You can direct them to different directories on your server
-
cesarcesar
- Forum Contributor
- Posts: 111
- Joined: Mon Oct 18, 2004 3:28 pm
Re: Using Mulpitle Domains for One Hosting Account
Parked/Aliasing worked. Thanks much.