I want to redirect a subdomain to a domain but keep the original subdomain URL.

The way my host works, is that /sub/subdomain/ is the standard subdomain root. Each subdomain has its own htaccess file /web/ is the domain root

This is what I put in the htaccess of subdomain

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain.domain.com [NC]
RewriteRule ^/(.*)$ /$1 [L]

It does redirect to the domain, but doesn't keep the subdomain URL. What am I doing wrong?

link|improve this question
1  
What's doing the redirect? It's not this RewriteRule - do you have other configuration elsewhere? – Shane Madden Jan 30 at 18:50
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.