Jump to content
php.lv forumi

subdomain


chizijs
 Share

Recommended Posts

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com$ [NC]

RewriteRule ^(.*)$ http://domain.com/%1 [QSA,R=301,L]

 

vai

 

RewriteEngine on

RewriteCond %{HTTP_HOST} !^www\.domain\.com

RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com

RewriteRule ^$ /%1 [L]

 

+

jā,

CNAME uz *.domain.com
Edited by who_i_am
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...