View Full Version : PHP redirect?
Hell Bomb
12-02-2009, 05:41 PM
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
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
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.