PDA

View Full Version : Force Sub-Domain Redirect


Zero Tolerance
02-26-2005, 10:00 PM
This is but a tiny modification, however to some perhaps useful, below is a description of what this lil modification does.

Description
Let's say you have: http://YOURSITE.com/forums, however you also have this set up as a sub domain: http://forums.YOURSITE.com
You dont want visitors to go to the old URL, and if they do you want them to be redirected to the new URL, this is exactly what that does, and doesn't loose the operation with in the URL.

Example
Let's say a user tries to visit: "http://YOURSITE.com/forums/showthread.php?p=7"
They will be automatically redirected to: "http://forums.YOURSITE.com/showthread.php?p=7"
So they will end up in the same location, however the URL is fixed and goes to your sub-domain instead of the one they have requested.

Enjoy,

- Zero Tolerance

Marky
02-27-2005, 01:09 PM
Very nifty little mod ZT :D
Nice work ;)
* Marky installs :D

Deaths
02-27-2005, 01:39 PM
Very usefull!

/me clicks install

burnist
02-27-2005, 02:28 PM
Could thsi be modifyed to work with moving between one domain and another? eg if a use goes to http://SITEDOMAIN.com/forums/file.php?query=string that it moves to http://FORUMDOMAIN.com/file.php?query=string

?? :)

If you think it can i'll take a stab at it :)

Zero Tolerance
02-27-2005, 03:18 PM
Yeah it could easily be done to do that desired action, if your not sure how to do it, just say so and i'll post up a modified version for you :)

- Zero Tolerance

Guy G
02-27-2005, 03:59 PM
Great, installed.

Phalynx
02-27-2005, 06:23 PM
Nice, thanks!

enterprise
02-28-2005, 12:51 PM
Very useful!! Just the thing I've been looking for :)

yoyoyoyo
03-01-2005, 12:22 AM
excellent! many thanks!

Kru
03-09-2005, 02:26 PM
Could thsi be modifyed to work with moving between one domain and another? eg if a use goes to http://SITEDOMAIN.com/forums/file.php?query=string that it moves to http://FORUMDOMAIN.com/file.php?query=string

?? :)

If you think it can i'll take a stab at it :)

Well, I have the same wish but no idea how to do it. Can you give me a helping hand, please. :)

wolfgangontour
02-29-2008, 05:41 PM
all your hacks are interesting :D