07-16-2009, 09:36 PM
|
#2 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
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.
|
|
|
|