|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
domains
Our web site domain has recently changed from mydomain1.com to mydomain2.com. However, there are still urls floating around out there from search engine bots etc. that include mydomain1.com, making a lot of broken links. Any url on the site must use the new mydomain2.com because of a Perl script that basically runs the site.
My question: Is there a way to configure Apache so that any request for mydomain1.com is automatically changed to mydomain2.com? This would include longer URLS like mydomain1.com/images/myimage.jpg which would be automatically changed to mydomain2.com/images/myimage.jpg Any help would be greatly appreciated. Jon |
|
#2
|
|||
|
|||
|
There are many ways to solve this problem. Say to use mod_rewrite, you should/must use external redirection:
# http://www.domain1.com RewriteEngine on RewriteRule ^(.*) http://www.domain2.com$1 [R,L] |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > domains |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|