Problem with vbseo redirect

Discussion in 'vBulletin Discussions' started by datoneer, Dec 11, 2013.

  1. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    Hello,

    i would like to uninstall vbseo from my forum. Everything is ok when doing that, but then i have problems with 301 redirects vbseo to vbulletin urls.

    Can someone help me with this please?

    In vbseo url rewrite settings I'm using default preset 001.

    What do i have to choose in vbulletin friendly urls, after removing vbseo?

    And what goes to .htaccess file?

    Appreciate your help
     
    Big al and Brandon like this.
  2. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    From this site.
    http://tools.geekpoint.net/xfseo/
    it says to use these rules for 001

    Code:
    RewriteEngine on
    RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
    RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
     
    Big al and datoneer like this.
  3. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    It doesn't work for forum, it says Unsupported url format.

    Anyway it's ok, google will have to re-index just categories, threads are redirecting fine. Thanks
     
    Last edited by a moderator: Dec 11, 2013
    Big al likes this.
  4. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    That likely means your forum URLs do not contain the forum id numbers such that you can't setup a generic redirect for those URLs. It will be necessary to setup individual redirects for each forum URL. Please provide specific examples of old and new forum URLs.
     
    Big al and datoneer like this.
  5. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
  6. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    I'd try something like this.

    Code:
    Redirect 301 /oldpage/ http://www.yoursite.com/newpage/
     
    Big al and datoneer like this.
  7. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    Thanks man!!
     
  8. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    Whoops, sorry but something is not good now...all topics are redirecting to categories! What now??
     
  9. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    What did you change exactly?
     
  10. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    Last edited by a moderator: Dec 14, 2013
  11. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    This is my htaccess
     

    Attached Files:

  12. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    The only mention of "301" on in that file is this?

    Code:
    RewriteRule (.*) http://www.imspot.org/$1 [L,R=301]
     
    GasMan320 likes this.
  13. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
  14. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    Where exactly are you putting it. You have a ton of code in the file you attached.
     
  15. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    Right below this

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
     
  16. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    Maybe @Andres could help?
     
  17. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    I think it's time to move to xenforo, i'm tired of vbulletin and vbseo + their support is awful. My forum has a lot of bugs after upgrade to 4.2.2. version.
     
    Big al and Autopilot like this.
  18. Andres

    Andres Regular Member

    Joined:
    May 9, 2013
    Messages:
    13
    Likes Received:
    24
    This should do the trick:

    For forums:

    RewriteRule ^imspot-forum-news/index([0-9]+)\.html$ forumdisplay.php?235-IMSpot-Forum-News/page$1 [L]
    RewriteRule ^imspot-forum-news/$ forumdisplay.php?235-IMSpot-Forum-News [L]

    RewriteRule ^another-example/index([0-9]+)\.html$ forumdisplay.php?1-Another-Example/page$1 [L]
    RewriteRule ^another-example/$ forumdisplay.php?1-Another-Example [L]

    Forum name
    Forum ID
    Page number

    Those rules include single page forums and multiple page forums.

    For threads:

    RewriteRule ^[^/]+/([0-9]+)-.+-([0-9]+)\.html$ showthread.php?t=$1&page=$2 [L]
    RewriteRule ^[^/]+/([0-9]+)-.+\.html$ showthread.php?t=$1 [L]

    Matches forum name
    Matches thread ID
    Matches thread name
    Matches page number

    Those rules include single page threads and multiple page threads. They should be put in that exact same order, so that your .htaccess should initially look like this:

    Code:
    RewriteEngine on
    
    # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
    # RewriteBase /forum/
    
    # If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
    # Options -MultiViews
    
    RewriteCond %{HTTP_HOST} !^www\.imspot\.org
    RewriteRule (.*) http://www.imspot.org/$1 [L,R=301]
    
    #Forums:
    
    RewriteRule ^imspot-forum-news/index([0-9]+)\.html$ forumdisplay.php?235-IMSpot-Forum-News/page$1 [L]
    RewriteRule ^imspot-forum-news/$ forumdisplay.php?235-IMSpot-Forum-News [L]
    
    RewriteRule ^another-example/index([0-9]+)\.html$ forumdisplay.php?1-Another-Example/page$1 [L]
    RewriteRule ^another-example/$ forumdisplay.php?1-Another-Example [L]
    
    #Threads:
    
    RewriteRule ^[^/]+/([0-9]+)-.+-([0-9]+)\.html$ showthread.php?t=$1&page=$2 [L]
    RewriteRule ^[^/]+/([0-9]+)-.+\.html$ showthread.php?t=$1 [L]
     
    Jaymsgq, cpvr, Big al and 2 others like this.
  19. datoneer

    datoneer Regular Member

    Joined:
    Dec 11, 2013
    Messages:
    11
    Likes Received:
    5
    Thanks, but now it says invalid forum specified
     
  20. Andres

    Andres Regular Member

    Joined:
    May 9, 2013
    Messages:
    13
    Likes Received:
    24
    Adding the R flag should fix that:

    RewriteRule ^imspot-forum-news/index([0-9]+)\.html$ forumdisplay.php?235-IMSpot-Forum-News/page$1 [L,R]
    RewriteRule ^imspot-forum-news/$ forumdisplay.php?235-IMSpot-Forum-News [L,R]
     
    Big al and Brandon like this.

Share This Page