Dynamic subdomains with cPanel and PHP
Put * in Subdomains in cPanel to setup Wildcard
Put this in .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([aA-zZ])$ subslug.php?username=$1
RewriteCond %{HTTP_HOST} ^(^.*)\.yourdomain.com
RewriteRule (.*) subslug.php?username=%1
Written by Wayne Roddy
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#