I read earlier that is posible to create A dubdomain with .htaccess from a folder on my site.
my url is http://www.wsdcent.com/nzalang/ , i whant it to be like nzalang.wsdcent.com How do i do this trouhg .htaccess.
Thanks for you time.
Options +FollowSymLinks
RewriteEngine On
# Fix missing trailing slashes for site1.com.
RewriteCond %{HTTP_HOST} ^(www\.)?nzalang\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/nzalang%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
# Rewrite site1.com to /site1/.
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} ^(www\.)?nzalang\.com$ [NC]
RewriteRule ^(.*)$ /nzalang/$1 [QSA,L]
Users browsing this forum: No registered users and 4 guests