Results 1 to 5 of 5

301 Redirect Help.

This is a discussion on 301 Redirect Help. within the General Discussion forums, part of the vBulletin SEO Discussion category; OK I asked this on DP before I had the epiphany that "hey... wouldn't it be smarter to just ask ...

  1. #1
    Member Jibber's Avatar
    Real Name
    Jibber
    Join Date
    Aug 2006
    Posts
    46
    Liked
    5 times

    301 Redirect Help.

    OK I asked this on DP before I had the epiphany that "hey... wouldn't it be smarter to just ask on the forum where the 301/.htaccess experts are?"

    So yeah I converted my basketball forum from IPB to VB.

    I have a few URLs that point to team specific forums that I want to 301 redirect because i know they have a lot of backlinks.

    I tried redirect 301 /index.php?showforum=4 /forumdisplay.php?f=263

    But that just gives me a 500 Internal Server Error.

    When I add the http to the destination URL the 500 error goes away but it just ignores the redirect. redirect 301 /index.php?showforum=4 http:/www.hoopstalk.net/forumdisplay.php?f=263

    I know my server supports RewriteRule in .htacccess because I have my domains 301'd to www.mydomain.com like onlyriddles.com which is on the same server.

    So what am I doing wrong with the redirect 301 and how can I fix it? Or how do I do it with rewriterule?

    Any help is MUCH appreciated!
    Founder/Administrator | Chat Forum | Also the Malware Wiki.

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

    you can use the following in .htaccess:
    Code:
    RewriteEngine on
    
    RewriteCond %{QUERY_STRING} ^showforum=4$
    RewriteRule ^index\.php http://www.domain.com/forumdisplay.php?f=264

  3. #3
    Member Jibber's Avatar
    Real Name
    Jibber
    Join Date
    Aug 2006
    Posts
    46
    Liked
    5 times
    THANK YOU!

    That's the first code I've tried that actually works.

    Is there any way to do it so it redirects as a 301 redirect for SEO purposes?
    Founder/Administrator | Chat Forum | Also the Malware Wiki.

  4. #4
    Member Jibber's Avatar
    Real Name
    Jibber
    Join Date
    Aug 2006
    Posts
    46
    Liked
    5 times
    Ahh nevermind I figured it out. I added this to the end of the last line [R=301,L]
    Founder/Administrator | Chat Forum | Also the Malware Wiki.

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Yes, that's right.

Similar Threads

  1. 301 redirect 404 pages?
    By Steve in forum Off-Topic & Chit Chat
    Replies: 13
    Last Post: 04-27-2009, 01:29 AM
  2. Different 301 Redirect formats
    By oddmusic in forum General Discussion
    Replies: 12
    Last Post: 03-16-2008, 11:47 AM
  3. 301 fügt ?vbseourl= mit an
    By Junior in forum Deutsch
    Replies: 8
    Last Post: 11-20-2006, 01:07 PM
  4. 301 Redirect Original Content (posts)
    By thecat in forum Troubleshooting
    Replies: 2
    Last Post: 10-04-2006, 10:00 AM
  5. Stuck setting up a 301 redirect
    By Pixalo in forum URL Rewrite Settings
    Replies: 3
    Last Post: 06-06-2006, 05:36 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
  •