How To create subdomain from .htaccess
Started on the old forum in September 2012 · view the original in the archive · old links redirect here
Rrobyf wrote: Hello masters, How To create subdomain from .htaccess..? please share it
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yourwebsite.com
RewriteCond %{HTTP_HOST} ([^.]+)\.yourwebsite.com
RewriteRule ^(.*)$ /path_to_your_site/httpdocs/work_out.php?url=%1
Sanju Kr wrote: RewriteEngine On RewriteCond %{HTTP_HOST} !^www.yourwebsite.com RewriteCond %{HTTP_HOST} ([^.]+).yourwebsite.com RewriteRule ^(.*)$ /path_to_your_site/httpdocs/work_out.php?url=%1
Thankz, I try