Created
April 3, 2012 03:54
-
-
Save btoone/2289161 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use .htaccess to redirect subdomains | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\.yourwebsite.com | |
RewriteCond %{HTTP_HOST} ([^.]+)\.yourwebsite.com | |
RewriteRule ^(.*)$ /path_to_your_site/httpdocs/work_out.php?url=%1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment