TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-16-2009, 09:19 PM   #1 (permalink)
The Wanderer
 
Mike's Avatar
 
Join Date: Jun 2009
Posts: 11
Thanks: 0
Mike is on a distinguished road
Default Users Subdomains

hi everyone, here i am with another question for you guys.

I have a website, which is a community of users, i want the usersto have their own user domain by example:

pinkgaydragon.mydomain.com

what is the best way and how can i manage this? with mod_rewrite or what?
Mike is offline  
Reply With Quote
Old 07-16-2009, 09:36 PM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Do you have control over your DNS? You need to wildcard everything to once place to start doing that.

Here is a rule that should work which I found on google. I've never done this myself so I can't give you a definitive answer.
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yourwebsite.com
RewriteCond %{HTTP_HOST} ([^.]+)\.yourwebsite.com
RewriteRule ^(.*)$ /path_to_your_site/httpdocs/work_out.php?url=%1
__________________


Last edited by codefreek : 07-17-2009 at 02:43 AM. Reason: Code Tags - Added.
Village Idiot is offline  
Reply With Quote
Old 07-17-2009, 03:33 AM   #3 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

Do you have Cpanel ? if so,
With Cpanel

or:
Without Cpanel



-Cf
codefreek is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
multi users uploading an image to a table sarmenhb General 6 06-29-2008 04:10 AM
uploading images into a tabe by multi users sarmenhb Absolute Beginners 1 06-20-2008 02:51 PM
Checking a users login details against a database Jmz Absolute Beginners 6 05-08-2008 10:47 AM
Updating users Orc General 15 02-09-2008 03:02 AM
Creating a PHP ACL and even Rat out Users using Proxies! Wildhoney General 0 09-22-2007 10:48 AM


All times are GMT. The time now is 04:00 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design