Mobile app version of vmapp.org
Login or Join
Kaufman445

: Moving a site that was already moved - how should I deal with rewrites and redirects? I have a site that used to have all of its pages hosted on a single domain (e.g. mydomain.com). At

@Kaufman445

Posted in: #301Redirect #UrlRewriting

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 otherdomain.com/page.html
Redirect 301 /go/resource/guide.pdf 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 otherdomain.com will be moved to foo.mydomain.com.
What is the best way to handle this?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman445

2 Comments

Sorted by latest first Latest Oldest Best

 

@Carla537

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.

10% popularity Vote Up Vote Down


 

@Turnbaugh106

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme