The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Changing forum URL's redirect script.
This isn't a hack, so I thought best post it here. Basically, my forums are currently located at www.gamerforums.com/board, and I wish to change them so that they are at www.gamerforums.com - does anyone know of, or can anyone create a simple PHP script that will redirect people visitng board/forumdisplay.php and board/showthread.php to the correct posts and forums in root/forumdisplay.php and root/showthread.php. Thanks in advance!
|
#2
|
||||
|
||||
If you are on Apache Server you can do it via .htaccess file..
The structure is: Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html Check keyword "htaccess redirect" in either this board or in the internet I'm sure you'll find a lot of info |
#3
|
||||
|
||||
I'd heard a little about that in the past, but I thought it wouldn't work for dynamic content, e.g. wouldn't I have to type out every one of my 40000 thread URL's in the .htaccess file?
|
#4
|
||||
|
||||
no of course not.. (otherwise would I suggest that?)
You can redirect the whole directory to an other directory. Besides even if it's file redirection it works with dynamic content. That is, if you redirect showthread.php it redirects all calls to this file including dynamic ones like "showthread.php?yourcontent here". BTW why dont you move your forum to your maindirectory? This can be wise solution. If you dont want your members to lose bookmarks, you can redirect that directory to your new URL. |
#5
|
||||
|
||||
I can't find anything specific to my needs.
|
#6
|
||||
|
||||
You know of any examples Logician?
|
#7
|
||||
|
||||
I cant remember the source info but here is a nice document I keep handy. It covers all .htaccess subjects but I'm sure you can use it for your needs..
|
#8
|
||||
|
||||
Thanks dude.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|