How to redirect non www and http to https with www via htaccess?
I want to redirect old folder to home page like http://.test.com/test1/about.php to https://www.test.com
How to redirect non www and http to https with www via htaccess?
I want to redirect old folder to home page like http://.test.com/test1/about.php to https://www.test.com
2
Answers
Put these line in your .htaccess file in root directory of your webserver:
Also make sure that you haven’t disable .htaccess in your apache config.
Try this conf one on your server configuration :