Why .htaccess is Important

.htaccess files are helpful in directing people to the correct version of your website. If you have a secure website you will actually have four versions of your website, http://example.com, http://www.example.com, https://example.com and https://www.example.com. It's it important for google and other search engines to pick one of these to use and make sure all others point to the one you have chosen. There are many tutorials online for htaccess which will give you the code you need to accomplish this. It's also important for 301 redirects if you have updated your site and changed or amended any URL's. Some sites may be linking to a page that no longer exists which can lose you business so it's important to redirect these old pages to the new pages. There are many other uses for htaccess which you can find online but these are the most important.