Results 1 to 14 of 14

Changed forum name, how to redirect all

This is a discussion on Changed forum name, how to redirect all within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, I've changed a few forum names using vbseo . Is there a method to put a redirect for all ...

  1. #1
    Member
    Real Name
    K
    Join Date
    Jul 2006
    Posts
    83
    Liked
    0 times

    Question Changed forum name, how to redirect all

    Hi,

    I've changed a few forum names using vbseo. Is there a method to put a redirect for all visitors and bots so when they visit vbseo.com/forumOLD/, everyone would be redirected to the new URL vbseo.com/forumNEW/.

    Thank you.

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times

  3. #3
    Member
    Real Name
    K
    Join Date
    Jul 2006
    Posts
    83
    Liked
    0 times
    Thanks Keith

  4. #4
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    In .htaccess, right after RewriteEngine On

  5. #5
    Member
    Real Name
    K
    Join Date
    Jul 2006
    Posts
    83
    Liked
    0 times
    Hmmm...

    I've added RewriteRule ^forum-feedback/(.*)$ feedback/$1 [L,R=301] in the Custom Rewrite Rules but the redirect does not work.

    Where do you add the codes?


    edit: just saw your posts, trying it out.

  6. #6
    Member
    Real Name
    K
    Join Date
    Jul 2006
    Posts
    83
    Liked
    0 times
    I downloaded the .htaccess file, added

    RewriteRule ^forum-feedback/(.*)$ feedback/$1 [L,R=301]

    at the end of the file, saved it, and reuploaded overwriting old file in Binary mode.


    I retyped the old ULR ..../forum-feedback/ but no redirection.

  7. #7
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Don't add it at the end, add it right below RewriteEngine On like I noted.

    And .htaccess is an ASCII file; no need for binary mode on that one.

  8. #8
    Member
    Real Name
    K
    Join Date
    Jul 2006
    Posts
    83
    Liked
    0 times
    I've added the above codes just below RewriteEngine On.

    But when I type in the old URL, browser redirects me to http://www.calpolyonline.com/home/se...rums/feedback/

  9. #9
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Did you uncomment the Rewritebase line in .htaccess?

  10. #10
    Member
    Real Name
    K
    Join Date
    Jul 2006
    Posts
    83
    Liked
    0 times
    Quote Originally Posted by Keith Cohen View Post
    Did you uncomment the Rewritebase line in .htaccess?
    Yeah.
    PHP Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    RewriteRule 
    ^forum-feedback/(.*)$ feedback/$[L,R=301]
    RewriteRule ^off-campus/(.*)$ offsite-campus/$[L,R=301]
    RewriteRule ^on-campus/(.*)$ onsite-campus/$[L,R=301]
    RewriteRule ^rules-tou/(.*)$ rules/$[L,R=301]
    RewriteRule ^cpo-central/(.*)$ central-category/$[L,R=301

  11. #11
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Up at the top there should be a line that has Rewritebase on it. Try uncommenting that line. (Remove the # from in front of it.)

  12. #12
    Member
    Real Name
    K
    Join Date
    Jul 2006
    Posts
    83
    Liked
    0 times
    After doing that and typing in the old URL, it redirects me to the new URL without the forums/ in the URL (i.e. redirected to www.calpolyonline.com/feedback/ instead of www.calpolyonline.com/forums/feedback/)

    And the forum shows a blank 404 page.
    Typing i

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Set it to:
    Code:
    RewriteBase /forums/

  14. #14
    Member
    Real Name
    K
    Join Date
    Jul 2006
    Posts
    83
    Liked
    0 times
    Thank you both. It works.

Similar Threads

  1. Bad redirect on forum
    By Aidan in forum Troubleshooting
    Replies: 5
    Last Post: 01-07-2006, 10:42 AM
  2. Changing Forum names-how to redirect to new
    By T2DMan in forum URL Rewrite Settings
    Replies: 0
    Last Post: 11-13-2005, 01:17 AM
  3. Best way to redirect my old forum to vb using 301
    By Bellinis in forum General Discussion
    Replies: 11
    Last Post: 10-29-2005, 09:03 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
  •