Results 1 to 3 of 3

Managing Old URLs

This is a discussion on Managing Old URLs within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I recently change subdomains on a site and a member brought up an issue with some very old URLs not ...

  1. #1
    Member
    Join Date
    Oct 2005
    Posts
    46
    Liked
    1 times

    Managing Old URLs

    I recently change subdomains on a site and a member brought up an issue with some very old URLs not working. These are from when the site was running vBulletin v2.x and had it's own rewrite software. Following are more details

    Some old links are not working and we need to see if we can determine a way to rewrite them to work. Here is a link to a page that has an old style link:
    U2 Feedback - View Single Post - *Frequently Posted U2 Stuff - LOOK HERE Before Starting a New Thread*

    It seems there was some SEO software in place in the past that had URLs that looked like this:
    http://u2.interference.com/t166966.html

    Now the new URL should be:
    http://u2.interference.com/f189/merg...ptions-u2-com-166966.html

    In the above example the only item that vBSEO is really looking for is the dash thread ID (ex. -166966.html). All the rest of the URL is just there for optimization. Do you know how if it's possible to extract this thread ID from the old URLs, com/t166966.html then create a replacement variable or some other thing so the old URLs will be changed to point to the new URLs?

    Thanks in advance for your help and suggestions.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    you can put this in .htaccess file right after "RewriteEngine on" line:
    Code:
    RewriteRule ^t([0-9]+)\.html vbseo.php?vbseourl=showthread.php&t=$1 [L]

  3. #3
    Member
    Join Date
    Oct 2005
    Posts
    46
    Liked
    1 times
    nvrmnd
    Last edited by Andy R; 10-07-2008 at 01:42 AM.

Similar Threads

  1. Example URLs based on 'Select Your Forum URLs Global Format"
    By GlowHost in forum URL Rewrite Settings
    Replies: 5
    Last Post: 11-10-2007, 04:16 PM
  2. Replies: 2
    Last Post: 01-22-2007, 02:20 PM
  3. Bug with managing attachments in edit mode
    By BamaStangGuy in forum Bug Reporting
    Replies: 2
    Last Post: 11-07-2005, 06:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •