Results 1 to 5 of 5

Preventing double-redirects

This is a discussion on Preventing double-redirects within the Pre-Sales Questions forums, part of the Announcements & Pre-Sales category; I'm upgrading a vB site from 2.2.9 to 3.6.8 and want to add vBseo to the upgraded site, but I ...

  1. #1
    Junior Member
    Real Name
    Robert Paulson
    Join Date
    Dec 2007
    Posts
    29
    Liked
    0 times

    Preventing double-redirects

    I'm upgrading a vB site from 2.2.9 to 3.6.8 and want to add vBseo to the upgraded site, but I have a potential redirect problem.

    The url path format is different between 2.2.9 and 3.6.8:

    from

    mysite.com/forums/showthread.php?s=&threadid=6115

    to

    mysite.com/forums/showthread.php?t=6115
    I don't want to have to do two redirects for every page - one to get to the new vB url format, one to get to the relevant (vBseo) format.

    Is it possible to set a rewrite rule so that there is only one redirect and not two?

  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,

    vBSEO should redirect old format in one step as well.

  3. #3
    Junior Member
    Real Name
    Robert Paulson
    Join Date
    Dec 2007
    Posts
    29
    Liked
    0 times
    Hi Oleg,

    Without getting into the code itself, I'm wondering how it's able to do that. Can you explain it a bit?

    I just don't want to get everything set up only to find it isn't able to accomplish that.

    Thanks in advance.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You can try that by simply entering this URL in address bar:
    Code:
    http://www.vbseo.com/showthread.php?s=&threadid=19169
    Here is the request:
    Code:
    GET /showthread.php?s=&threadid=19169 HTTP/1.1
    Host: www.vbseo.com
    response:
    Code:
    HTTP/1.x 301 Moved Permanently
    Location: http://www.vbseo.com/f55/preventing-double-redirects-19169/

  5. #5
    Junior Member
    Real Name
    Robert Paulson
    Join Date
    Dec 2007
    Posts
    29
    Liked
    0 times
    Nice!

Similar Threads

  1. 301 Redirects (not 303 Redirects) for Changed Settings?
    By voteforbird in forum Pre-Sales Questions
    Replies: 3
    Last Post: 08-19-2006, 12:52 PM
  2. 301 redirects disabled, vBSEO still redirects
    By WebInsider in forum Troubleshooting
    Replies: 1
    Last Post: 12-30-2005, 12:24 PM
  3. Replies: 6
    Last Post: 10-23-2005, 12:32 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
  •