vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Redirect VB 4 urls to VB 5 in different directory (https://vborg.vbsupport.ru/showthread.php?t=325571)

alexnc 09-05-2017 06:04 PM

Redirect VB 4 urls to VB 5 in different directory
 
Hi.

I had:
Wordpress installed in the folder www/wp
vb4 is installed in the root, www/
The index.php of the root folder links to Wordpress
and forum.php to vb4

I am trying to upgrade to vb5 with the same settings. I have been testing for several days without success.

Please, does anyone know if you can redirect the old urls to the new ones, if I have vb5 installed in a folder other than the one I had in vb4, for example root / forum?

By default, if it is installed in the same folder they are redirected very well.
But I have not been able to do this for the type of config, since in vb5 you can not change the index.php file, I think

Sorry for my english and thank you very much for your time.

alexnc 09-06-2017 06:29 PM

solved
I have redirected the urls that interest me to the folder where I have vb5 installed and now they are redirected.

Code:

RewriteEngine On
RewriteRule ^showthread\.php$ /foro/$0 [R=301,L]



All times are GMT. The time now is 04:46 PM.

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.01280 seconds
  • Memory Usage 1,713KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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