vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PHP redirect? (https://vborg.vbsupport.ru/showthread.php?t=229355)

Hell Bomb 12-02-2009 05:41 PM

PHP redirect?
 
Kk i have several pages outside of vBulletin home directory, therefore even tho their are vBulletin powered pages the links will not work correctly, how can i use php to change all the links to the correct spot.

etc.
When clicking links on the page outside the vBulletin home forum. lets say adminco it goes to mywebsite.net/admincp i need it to go to mywebsite.net/forums/admincp

sheppardzwc 12-03-2009 12:42 AM

Quote:

Originally Posted by hellbomb (Post 1924186)
Kk i have several pages outside of vBulletin home directory, therefore even tho their are vBulletin powered pages the links will not work correctly, how can i use php to change all the links to the correct spot.

etc.
When clicking links on the page outside the vBulletin home forum. lets say adminco it goes to mywebsite.net/admincp i need it to go to mywebsite.net/forums/admincp

You can do manual rewrites of Apache (if you've got access to the httpd.conf) or you can just create individual folders, with a file inside them called "index.php" and in index.php put a header redirect.

So if you wanted /admincp to go to /forums/admincp you just make a folder called "admincp" and then add index.php file in there with this code:

PHP Code:

<?php

header
('Location:/forums/admincp');

?>


Hell Bomb 12-03-2009 04:16 PM

so i would have to recreate this for each link that does not work? Do you know how vBadvance did it. With that, they managed to rebuild all the links from the admincp file, i figured that this would be just a php script change to make it match the forums location. Anyone familiar with vBadvance will know what i am talking about.


All times are GMT. The time now is 12:16 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.02172 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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