vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Force Sub-Domain Redirect (https://vborg.vbsupport.ru/showthread.php?t=77129)

Zero Tolerance 02-26-2005 10:00 PM

Force Sub-Domain Redirect
 
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 ;)
[high]* Marky installs :D[/high]

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

Quote:

Originally Posted by burnist
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


All times are GMT. The time now is 04:44 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.01167 seconds
  • Memory Usage 1,727KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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