Solved

Are URL redirects the best way to deal with Google and moved pages?

Posted on 2012-03-10
5
344 Views
Last Modified: 2013-11-19
We migrated our site from straight-up file-based system to Drupal.  Unfortunately, many links in Google point to our old site.  If I search for Murray Richtel, for example, I get a hit for this address (the old URL).

http://www.jaginc.com/pages/richtel.php

Murray now lives here:

http://jaginc.com/arbiters/mrichtel

This issue exists for many of the pages in the site.  Do we handle the issue with simple URL redirects?
0
Comment
Question by:jdana
5 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 80 total points
ID: 37706332
I am not THE expert on this. I can however confirm that 301 from .htaccess worked well for me. If you have many pages, you may want to add a process that takes all /pages and looks up the new address and send back the 301 for you.
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 37706433
I agree with mplungian.  Google needs to be told where those pages go, or you'll lose their rank altogether.  A 301 is the appropriate way to do this, and Google handles them internally.
0
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 80 total points
ID: 37706735
If your old site can access PHP you can build translation tables.  Just call this in a common page header algorithm right at the top of the script, before any browser output.  Obviously this is untested code, but hopefully it will demonstrate the idea.

Example:
<?php // TRANSLATE URLS

$urls = array
( '/pages/richtel.php'  => '/arbiters/mrichtel'
, '/pages/barr.php'     => '/arbiters/rbarr'
, '/pages/anderson.php' => '/arbiters/landerson'
)
;

// TEST FOR THE OLD URL
if (array_key_exists($_SERVER["PHP_SELF"], $urls))
{
    header("Location: $urls[{$_SERVER["PHP_SELF"]}", TRUE, 301);
    exit;
}

Open in new window

0
 
LVL 12

Assisted Solution

by:junipllc
junipllc earned 80 total points
ID: 37707074
You can also use the Apache "Redirect" method. I'm mobile right now but I think the syntax is:
Redirect permanent http://url1.example.com http://url2.example.com

sorry for the horrendous formatting. my phone and i are having  a fight and it's winning

mike
0
 

Author Closing Comment

by:jdana
ID: 37779402
Great suggestions.  Thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
"Go Fund Me" type plugin 5 24
How to use question mark (?) in filename with html 25 71
Html Table looping 4 25
Set time on Session (ASP) 14 21
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question