Hi, I want to setup 301 redirect on following urls to one url given below: http://www.example.com http://www.example.com/index.htm http://example.com http://example.com/index.htm To http://example.com Is this possible using htaccess? thanks
You're going to end up in a redirect loop if you also want to redirect http:// example dot com to http:// example dot com or was that a typo? If it was a typo, then maybe this post helps (obviously you'll need to adapt it a bit)? https://forums.digitalpoint.com/threads/mod-rewrite-htaccess-question.2618316/#post-18354277