![]() |
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:
|
>>-Add PHP to your root index.php
"ROOT" should always mean Document Root.. http://www.yourdomain.com/ROOT So to answer your question, vbhome lite index.php :D |
ok cheers ill let you know how i get on !
|
nope not workin :(
i dont think that my *.yourdomain.com responds 2 b able to create a subdomain i have to ) Open your ftp manager up and connect in to your web space. 2) Click the folder mainwebsite_html. 3) In this folder add a new folder. 4) Name the new folder subdomain.yourdomain.com where subdomain and domain and your settings, e.g. forum.eukhost.com 5) Upload your desired files to this folder. 6) View this folder by going to http://subdomain.yourdomain.com, e.g. http://forum.eukhost.com. |
Yup.. before you even bother trying to install it, be sure to meet the requirements-- your server must respond to ANYNAME.yourname.com with your default page or it won't work. Your tech support may be able to set up Wildcard DNS for you.
|
wen i goto anyname.mydomain.com it sez HTTP 404 - File not found does that mean my server is respondin lol
|
Works great on my guild site (using vbportal).
example: http://dolby.eqgov.com thanks! *clicked install* |
Works great by me too if someone has probles with 404
You must enable Wildcards :P |
ok wildcards enabled ! just w8in 4 the dns to update !
|
this is an interesting hack. I wish someones takes over the other hack attempt that tries to give each member its own mini site, by breaking the profile in many pages, and perhaps give them an extra page.
One could always keep the http://membername.site.com on top by placing it in an invisible frame. Any attempt to access regular site could break out of frame. |
THANKS FOR AN AWESOME FEATURE! My users will love it.
See here: http://www.v-driveboat.com/showthrea...s=&threadid=33 |
This is a very cool hack.
I am using this with Velocd's custom HTML page hack, to give my users a custom webpage... very cool. :) |
Hey i forgot about this hack :)
Unfortunately i can't use it as i already have a service set up using postnuke for subdomain homepages :) - miSt |
I'm still pondering over whether I should use this for the member profile or the custom page
Or maybe both ;) |
I've modified this hack quite a bit now - moved code to member.php, added stuff to .htaccess, modified the custompage hack.
You have a choice of 3 URLs to use: username.domains.com OR www.username.domains.com OR www.domains.com/home/username I've made it so that instead of basing it on the userid, it is based on the username, so .htaccess cloaking works. :) |
Erwin,
Can you tell me how did you do that: www.domains.com/home/username? It's what I was thinking of the last two days... |
Erwin, are you planning to release your modifications as an update or add-on to this hack? I'd really love to see them.
Going to install the base version of this on my dev site tonight and see how it goes... Thanks to all the hackers who've worked on this! |
just about to test this on a vbulletin 3 site, theres no code changes to vb so it should work ok :D will let u all know ;)
|
Hmm, what if there are two usernames like "Member 1" and "Member_1" what would happen then?
|
How could you get this to work with forum names?
|
can someone port this over to vb3.0 please
|
Good luck contacting Overgrow. Lol.
|
Hi,
I really want this to work but for some strange reason it doesn't. I have Wildcard DNS for my domain. I don't get any errors or something, it simply doesn't work. any ideas? Thanks Niklas |
darn was told about this but it seems outdated. Erwin do you have the adjustments you did. Are you willing to put them up?
I was asking about something just like this. For latest vb. |
All times are GMT. The time now is 10:30 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:
|