Two domains pointing to one website - keeping the original url

Asked by:
dgconcrete / 32 Points
Time:
2013-02-10 1:07 pm EST
Category:
General Information
Hits:
860
I have read the difference between a parked and an addon domain and I am still not sure how to achieve my goal.

I have two domains; domain1.com and domain1.org. I want both domains to point to the same website and I want the domain the person used to enter the site to continue to appear as the person accesses different pages of the site.

If I understand the documentation correctly a parked domain will in redirect the person to the main domain. So if domain1.com is the main domain and domain1.org is a parked domain, someone typing in domain1.org will be redirected to domain1.com and will see domain1.com as they navigate the site. (Not what I want.)

An addon domain seems to be intended to allow a second domain to point to a subdirectory in my site. For example I could use an addon domain domain1.org to point to domain1.com/some_subdirectory/ Not sure what happenes to the domain address as you surf the site. Again, if I am reading this correctly I believe I can just use the addon domain feature and simply point domain1.org to the root of domain1.com. Is this correct? Will someone entering the site with domain1.org continue to see that domain as the naviagate the site?

If I do this do I also need to add the following line to my site.php file:

define('REDIRECT_TO_BASE_URL', false);

in order for the session to continue to show the domain1.org domain?

I am using concrete5 as my web server.

Thank you.



To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

ScottM
Staff
8,823 Points
2013-02-11 2:14 pm EST
Hello dgconcrete,

An addon is typically used for pointing to another folder to display as an entirely different website.

A redirect will simply change the name of the domain in the address bar to the main domain. (example, domain1.com is the main, domain2.com redirects to domain1.com. domain1.com displays in the browser address bar for the visitor.)

A parked domain, by default, will allow you the behavior you are wanting. (domain1.com is the main, domain2.com is parked and pointing to domain1.com. domain2.com will display in the browser address bar for the visitor.)

Many content management systems (such as Concrete5) override the parking behavior. This would be a result of the way they are coded and not anything that could be overridden in the cPanel.

Still, give the parked domain a try. If the Concrete5 allows, it should work as you desire.

Best Regarss,
Scott M

To submit a comment on this answer, please first login.

Want to share this Question?

News / Announcements

Update to SSL Certificates - Certificate Warnings
1969-12-31 11:00 am EST
Hits: 686

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.