vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Results 1 to 7 of 7

what to do with old urls?

This is a discussion on what to do with old urls? within the General Discussion forums, part of the vBSEO SEO Plugin category; vBSEO is up and running on my forums. Now I'm just waiting for spiders to grab my urls. I'm going ...

  1. #1
    Senior Member
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    212

    what to do with old urls?

    vBSEO is up and running on my forums. Now I'm just waiting for spiders to grab my urls. I'm going to grep out googlebot hits from my log files so I can see how effective the spidering is.

    Now, what do I do with my old urls? I had set up some poorly written mod_rewritten urls that aren't nearly as clean as vBSEO. Basically, my forum urls looked like this: http://www.hotrodders.com/f21 . And, my thread urls looked like this: http://www.hotrodders.com/t12345.html .

    I had gotten a lot of those pages indexed in SE's (thousands). I don't want to lose that traffic, and I don't want to get hit with a duplicate content penalty.

    I know that I can do 301 redirects via mod_rewrite so that forum urls like this: http://www.hotrodders.com/f21 get 301'd to urls like this: http://www.hotrodders.com/forum/title-of-forum . But, it doesn't seem feasible to do 301's for thread urls like this: http://www.hotrodders.com/t12345.html to urls like this: http://www.hotrodders.com/forum/titl...ead-12345.html .

    Should I keep both url schemes in place, and risk a duplicate content penalty? Or should I abandon the old scheme, and deal with 404's for all my old thread urls?

  2. #2
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: what to do with old urls?

    Hi Jonathan,

    Here is a .htaccess directive that you can add to 301 redirect your old static URLs to the new vBSEO CRUs:

    Code:
    RewriteRule ^t([0-9]+)\.html$ showthread.php?t=$1 [R=301]
    
    This will ensure that your currently indexed (static) threads are redirected & 404s or duplicate content will not become an issue.

    Juan

  3. #3
    Senior Member
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    212

    Re: what to do with old urls?

    Thanks Juan -- I didn't even consider that. I can just 301 the static thread links back to showthread.php, and the vbseo system will pick them up from there. Extremely cool.

  4. #4
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: what to do with old urls?

    Quote Originally Posted by Jonathan
    Thanks Juan -- I didn't even consider that. I can just 301 the static thread links back to showthread.php, and the vbseo system will pick them up from there. Extremely cool.
    Absolutely right! Forwarding any of your past statics to their equivalent dynamic URLs will allow vBSEO to take over and do the 301 redirecting to the new static formats.

    FYI I forgot to list a .htaccess directive for your old forum statics. Here it is:

    Code:
    RewriteRule ^f([0-9]+)$ forumdisplay.php?f=$1 [R=301]
    
    NOTE: Actually we are working on a new feature that will allow users to enter old static URL formats in the vBSEO Control Panel, and then have vBSEO do the redirecting automatically. Kind of a "hystoric url rewrite" feature

    Juan

  5. #5
    Senior Member
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    212

    Re: what to do with old urls?

    Historic url rewrites should be very useful to people.

    Any idea how to handle multi-page forum or thread urls that I've previously rewritten?

    For example, here's a url for page 726 of my "Engine" forum: http://hotrodders.com/f21-726.html . It's now pointing to page 1 of the Engine forum, rather than page 726. Here's the mod_rewrite line I'm using:

    RewriteRule ^f([0-9]+)-([0-9]+)\.html$ /forum/forumdisplay.php?forumid=$1&pagenumber=$2 [R=301,L]

    It's going through vbseo, and resolving to this url: http://hotrodders.com/forum/engine/?pagenumber=726


    Is there a cleaner way to pass that $pagenumber variable?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550

    Re: what to do with old urls?

    Hi Jonathan,

    just use "page" instead of "pagenumber" to get it working correctly

    RewriteRule ^f([0-9]+)-([0-9]+)\.html$ /forum/forumdisplay.php?forumid=$1&page=$2 [R=301,L]
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  7. #7
    Senior Member
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    212

    Re: what to do with old urls?

    Perfect -- thanks Oleg. I think I was accustomed to using $pagenumber from vb2, and vb3 allows either $page or $pagenumber.

Similar Threads

  1. Sitemap generating a lot more urls
    By poprulz in forum Troubleshooting
    Replies: 13
    Last Post: 02-28-2007, 04:15 PM
  2. Replies: 12
    Last Post: 08-16-2006, 05:22 AM
  3. Google Sitemap-Listing of old url's option-from 1.7
    By T2DMan in forum Member Articles
    Replies: 0
    Last Post: 04-02-2006, 08:46 AM
  4. Bug with Showpost URL Counts
    By Keith Cohen in forum Bug Reporting
    Replies: 10
    Last Post: 12-13-2005, 09:04 AM