PDA

View Full Version : Redirect old URLs to New Ones


postcd
04-07-2012, 02:12 PM
Hello, i need to redirect old URLs format to new format (forums and threads)

http://www.goteen.net/f35 -> http://goteen.net/uv-moderators/
http://www.goteen.net/f35/banning-2454/ -> http://goteen.net/uv-moderators/2454-banning.html

Please what to add into .htaccess or how to do it? Thank you

(i have changed SEO urls, and when someone goes to old format it says threadnot exist)

Videx
04-08-2012, 12:41 AM
I sure wouldn't mess with htaccess for something like that. But then, you really haven't described what it is you're trying to do, so I'm not sure.

blind-eddie
04-08-2012, 12:55 AM
Add the following two lines into your .htaccess file

Redirect /f35 http://goteen.net/uv-moderators
Redirect /f35/banning-2454 http://goteen.net/uv-moderators/2454-banning.html

postcd
04-08-2012, 05:32 AM
Thank You, i for sure need to redirect all old URL format to new URL format, not just these two...
I changed SEO URLs (forum, thread format) and i need to redirect old ones to new ones. Old ones currently shows thread do not exist.. So all external links to my forum pages dont works. Thank you

--------------- Added 1333872873 at 1333872873 ---------------

VBSEO has great support. This is how it should look like in my case, i think i changed 005 to 001 vbseo structure.

RewriteRule ^f([0-9]+)/index([0-9]+)\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$2 [L]
RewriteRule ^f([0-9]+)/$ vbseo.php?vbseourl=forumdisplay.php&f=$1 [L]

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