Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a site that used to have all of its pages hosted on a single domain (e.g. mydomain.com). At some point, a portion of the site's content was moved to another domain and the folks who did the move handled it by creating URL rewrites and 301 redirects.

Here's an example from my .htaccess file:

RewriteRule ^go/start/page.html http://otherdomain.com/page.html

Redirect 301 /go/resource/guide.pdf http://otherdomain/resources/guide.pdf

I don't know why some URLs were re-written while others were redirected.

My problem now is that I have to move these same pages to yet another location. For instance, what is currently hosted at http://otherdomain.com will be moved to http://foo.mydomain.com.

What is the best way to handle this?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Just setting up another set of redirects from the current location to the new location will be sufficient.

Any visitors following an old link to the old location will first be redirected to the current location and then again to the new location, but this will all happen automatically and — assuming that the servers are reasonably responsive and that there are no major network delays — shouldn't take more than a small fraction of a second. Also, this will all typically only happen when they first come to the site; thereafter, any links they follow ought to point directly to the new location.

You can also edit the original redirects to point directly from the old location to the new, and should generally do so if it's practical. Doing so may make the user experience slightly smoother (faster initial page loading time), might give you a very tiny bit more PageRank from old links, and eliminates one possible point of failure from the system. But if updating the old redirects seems difficult for some reason, or if you're afraid of making mistakes while doing so, it's also OK to just let them stay as they are.

share|improve this answer

From the look of the code, i'd simply update the appropriate rules and redirects - that would be the most valid approach I can think of.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com?utm_source=stackoverflow.com&amp;utm_medium=site-ui&amp;utm_campaign=footerlink\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2014 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2014.9.20.1879\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Webmasters Stack Exchange works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>"], "copyright__copyright__copyright": ["me reason, or if you're afraid of making mistakes while doing so, it's also OK to just let them stay as they are.\n\nshare|improve this answer\n\nFrom the look of the code, i'd simply update the appropriate rules and redirects - that would be the most valid approach I can think of.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}