How To create subdomain from .htaccess

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How To create subdomain from .htaccess

    Hello masters, How To create subdomain from .htaccess..? please share it

    #2
    Originally posted by Rrobyf View Post
    Hello masters, How To create subdomain from .htaccess..? please share it


    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 arnage; 01.09.12, 08:42.

    WWW.9XHOST.NET

    Comment


      #3
      Originally posted by Sanju Kr View Post
      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

      Comment

      Working...
      X