vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Redirect old URLs to New Ones (https://vborg.vbsupport.ru/showthread.php?t=281249)

postcd 04-07-2012 02:12 PM

Redirect old URLs to New Ones
 
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 [DATE]1333872873[/DATE] at [TIME]1333872873[/TIME] ---------------

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]


All times are GMT. The time now is 11:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01097 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete