![]() |
yourname.vbulletin.com (Subdomain Redirection)
SUBDOMAIN REDIRECTION v.1.0
Goal: Give every user a quick link to their profile or gallery or hacklist. Also add quick subdomains for anything else you want. Usefuleness: I was jealous of the Yaxay profiles that were automatically assigned to each username.yaxay.com. Then I saw the hack by Minots: vBSubDomains. This did way more than I wanted it to-- I don't need to offer users redirection then have them point "porn.overgrow.com" to some kiddie site. So I duplicated what I thought Yaxay was doing-- and here it is. Quote:
-Make sure *.yourdomain.com responds -Add PHP to your root index.php Difficulty: Somewhat Easy Speed: Quick Release: 1.0-- Feb 05, 2003 Hopping bunny: :bunny: |
MM i will try it on a localhost (maybe it works) if i set an adress for it
|
Awsome it works :D *clicks install*
|
i have tecks vbhome (lite) installed so that is my ROOT index.php, should i still add the code or can i just put it in like a new file say called index2.php ?
|
Looks very nice - i'll be sure to test this in the future :)
- miSt |
>>i have tecks vbhome (lite) installed so that is my ROOT index.php, should i still add the code or can i just put it in like a new file say called index2.php ?
The point is to put the code right on the top of your ROOT index.php. Since that is what most people are after on your domain, that should be as fast and uncluttered as possible. Don't bother including another file or sending it off to process before going to your root index.php-- With this code, it only does a few matching operations then runs as normal, with no database access additions, when people are just going to your normal root index. It should add virtually no overhead unless people are looking for a user's subdomain. |
There's a lot more you can do with this as well. Since mine points to my user's galleries, I have another processing file doing some more work called /view in the root directory.
http://~shabang~.overgrow.com my gallery http://~shabang~.overgrow.com/view/pussy.jpg any image can be referenced |
Btw does this redirect or actually show the correct page?
|
Header redirects.. you'll need more than a simple php hack if you want to go to a true /friendly/url/format. I believe fastforward outlines this somewhere around here!
|
Quote:
|
All times are GMT. The time now is 02:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|