|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Multiple domains to one IP
Quick question. I have multiple domains that I want directed to the same site. For example, mydomain.com is the main site. I also own mydomain.net and mydomain.org, and I want these two domains to point to mydomain.com.
Other than setting up the DNS so that all domains point to the same IP, what do I need to do to the Apache conf? As it is right now, the DNS has been changed and nothing has been done to Apache. Sure enough, mydomain.net points where it should (to the mydomain.com site), but the URL in the location bar remains mydomain.net. Ideally, I would like the URL to change from mydomain.net to mydomain.com as soon as the browser opens the homepage. Hope this isn't too confusing. Thanks for any help! Jon |
|
#2
|
|||
|
|||
|
>> I would like the URL to change from mydomain.net to mydomain.com
UseCanonicalName Off ... ... # put the following to the bottom of httpd.conf RewriteEngine on RewriteCond %{HTTP_HOST} ^mydomain\.net$ [OR] RewriteCond %{HTTP_HOST} ^mydomain\.org$ RewriteRule ^(.*) http://mydomain.com$1 [R,L] |
|
#3
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Multiple domains to one IP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|