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.
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 ...
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.
Thanks Keith
In .htaccess, right after RewriteEngine On
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.
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.
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.
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/
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/$1 [L,R=301]
RewriteRule ^off-campus/(.*)$ offsite-campus/$1 [L,R=301]
RewriteRule ^on-campus/(.*)$ onsite-campus/$1 [L,R=301]
RewriteRule ^rules-tou/(.*)$ rules/$1 [L,R=301]
RewriteRule ^cpo-central/(.*)$ central-category/$1 [L,R=301]
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.)
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
Set it to:
Code:RewriteBase /forums/![]()
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Thank you both. It works.