Could figure out how to actually write the .htaccess file in windows as when I tried to rename the txt file I created to .htaccess it popped up an error saying “You must type a file name”.

The solution:

  1. Open up notepad
  2. Write the contents of your .htaccess
  3. Save as
  4. “.htacess” - Make sure you keep the speech marks.
  5. Sorted