Hi I need to use .htaccess rules to redirect all subdomain pages to their domain pages. Ie. subdomain.domain.com/page1.html > domain.com/page1.html subdomain.domain.com/page3.html > domain.com/page3.html etc Can anyone help out? Thanks
rewritecond %{http_host} ^subdomain.domain.com [nc] rewriterule ^(.*)$ http://domain.com/$1 [r=301,nc] I am not sure I have not tried it yet but that would help