hello
How can i redirect
domain/anything to anything.domain.com
And make an exception for the images folder
Thanks
And make an exception for the images folder
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.domain\.com$ [NC]
RewriteRule ^(.*)$ /%2/$1 [QSA,L]
Users browsing this forum: No registered users and 4 guests