Hi all, I want to redirect all traffic for all files from: subdomain.domain.com to www.domain.com Code (markup): how do i do that in .htaccess? Thanks in advance!
I use this: RewriteEngine on RewriteCond %{HTTP_HOST} !^zindy.zone.dk RewriteRule ^(.*) http://zindy.zone.dk/$1 [L,R=301] Code (markup): It redirects everything that isn't the intented sitename, which enabels me to use a catch all cname so it doesn't matter what you type infront of the domain, you'll still hit the right pages. If that isn't what you're looking for maybe this is: RewriteEngine on RewriteCond %{HTTP_HOST} ^subdomain.domain.com RewriteRule ^(.*) http://www.domain.com/$1 [L,R=301] Code (markup): Maybe you want to add www.subdomain.domain.com too.
hi i dont undestand please help me a need hundreds subdomains for example i need that my allsubdomains.webspace.com.br redirect to www.webspace.com.br is possible? *.webspace.com.br to www.webspace.com.br