Version: 1.00, by Overgrow
Developer Last Online: Jun 2004
Version: 2.2.x
Rating:
Released: 02-04-2003
Last Update: Never
Installs: 19
No support by the author.
SUBDOMAIN REDIRECTIONv.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:
REQUIREMENTS:
OK, this is important. I can't help you with these requirements:
Your server must respond to blahblahblah.yourdomain.com by redirecting you to the default domain. If it does not do this already, you must ask your tech support if they can set it up. I did this by asking "Please setup Wildcard DNS for Overgrow.com. I would like *.overgrow.com to point to: /home/overgrow/HTML."
You must be using an index.PHP file as your document root file. Meaning when I hit your dot.com, it is serving me a PHP file. There are other ways around this using .htaccess but they are undesirable as they cause every hit to your main root domain to be processed through an additional php file.
Installation:
-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:
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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 ?
>>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.
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!
Nope, the point is to put the code right on the top of your 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 index.php--
so i should add your code to my vb home light index.php or my forums/index.php ? cheers