How to redirect an ’empty’ subdomain http://domain.com to http://www.domain.com using htaccess rewrite engine. It has to be a 301 permanent redirect and convey the rest of the url and query string.
How to redirect an ’empty’ subdomain http://domain.com to http://www.domain.com using htaccess rewrite engine. It
Share
Try putting these rules in the htaccess file in your document root:
The query string gets automatically appended.