Results 1 to 11 of 11

Redirect problem

This is a discussion on Redirect problem within the General Discussion forums, part of the vBSEO SEO Plugin category; A while back I deleted some subforums. Now I need to redirect one of those to a new forum, but ...

  1. #1
    Senior Member
    Real Name
    Doug Nelson
    Join Date
    Sep 2006
    Posts
    141
    Liked
    0 times

    Redirect problem

    A while back I deleted some subforums. Now I need to redirect one of those to a new forum, but I only have the non-vbseo version of the old URL. I tried doing a 301 redirect via .htaccess, but I think somewhere redirecting from a non-vbseo URL to a vbseo URL it got confused.

    How can I safely redirect from a non-vbseo URL to a vbseo URL?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    You can put this in .htaccess right after RewriteEngine on line:
    Code:
    RewriteCond %{QUERY_STRING} f=XX
    RewriteRule forumdisplay.php http://www.domain.com/newurl [L,R=301]
    where XX is your old forum ID.

  3. #3
    Senior Member
    Real Name
    Doug Nelson
    Join Date
    Sep 2006
    Posts
    141
    Liked
    0 times
    I appreciate that, but it didn't change anything. With or without it, my "Invalid Forum Specified" page has an URL ending in /forums/a/

    The URL I need to redirect ends with /forums/forumdisplay.php?s=&forumid=142

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    What is your full .htaccess contents now?

  5. #5
    Senior Member
    Real Name
    Doug Nelson
    Join Date
    Sep 2006
    Posts
    141
    Liked
    0 times
    Options All -Indexes
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?retouchpro.com [NC]
    RewriteRule \.(jpe?g|png|gif|bmp|zip|mov|psd|tif)$ - [NC,F]
    ErrorDocument 403 /index.php
    ErrorDocument 404 /index.php
    ErrorDocument 500 /index.php
    DirectoryIndex index.php index.htm
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    This seems to be root .htaccess, not forums/ one? Also, make sure that you have rewrite rule mentioned above in it.

  7. #7
    Senior Member
    Real Name
    Doug Nelson
    Join Date
    Sep 2006
    Posts
    141
    Liked
    0 times
    Ok, I added the following to my /forums .htaccess, right after the RewriteEngine line, but got exactly the same results as before (ie: no change):

    RewriteCond %{QUERY_STRING} f=142
    RewriteRule forumdisplay.php Hidden Power Support - RetouchPRO [L,R=301]

    (this forum is rewriting my quote, that should just be the URL to where I want that old forum to redirect to)

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    Can you provide ftp access via support ticket to check that?

  9. #9
    Senior Member
    Real Name
    Doug Nelson
    Join Date
    Sep 2006
    Posts
    141
    Liked
    0 times
    Ticket submitted

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    For the forumid=XX the rewritecond line should be changed to:
    Code:
    RewriteCond %{QUERY_STRING} forumid=142

  11. #11
    Senior Member
    Real Name
    Doug Nelson
    Join Date
    Sep 2006
    Posts
    141
    Liked
    0 times
    Thank you, works great now. I guess that's an ancient style forum URL.

Similar Threads

  1. Redirect external links problem
    By Tom in forum Bug Reporting
    Replies: 2
    Last Post: 08-08-2007, 03:44 AM
  2. Strange problem with redirect
    By Chad in forum Troubleshooting
    Replies: 3
    Last Post: 02-24-2007, 02:06 PM
  3. Replies: 3
    Last Post: 11-30-2006, 12:53 PM
  4. 301 fügt ?vbseourl= mit an
    By Junior in forum Deutsch
    Replies: 8
    Last Post: 11-20-2006, 01:07 PM
  5. redirect to homepage problem
    By TraumTeam in forum Troubleshooting
    Replies: 5
    Last Post: 12-14-2005, 11:40 AM

Posting Permissions

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