How To create subdomain from .htaccess

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

  • Rrobyf
    replied
    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

    Leave a comment:


  • Sanju Kr
    replied
    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.

    Leave a comment:


  • Rrobyf
    started a topic How To create subdomain from .htaccess

    How To create subdomain from .htaccess

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