I have a site with just a handful of pages, and I am trying to do a 301 redirect of everything. Everything works except the index file. It doesn't matter if I write it out as
http://example.com, the index file won't show a redirect.
Here is my .htaccess file:
Redirect 301 / https://example2.com/ Redirect 301 /index.html https://example2.com/ Redirect 301 /services.html https://example2.com/services/ Redirect 301 /contact-us.html https://example2.com/contact/
It might help that when someone puts
https://example.com/, it gets changed to
https://example.com without the "/". I'm not sure if that is relevant.