Creating .htaccess on Windows

Ever had issues creating an htaccess file on your windows machine? Well heres a quick way to create it and to make sure your .htaccess file is valid for the system.

  • open a command prompt - start->run->cmd is probably the easiest way
  • browse to the folder you want by using a combination of cd (change directory) and dir (list files/directories)
  • type in the following command...

copy con .htaccess [Enter]

And thats all there is to it. The blank .htaccess file will be created. Good to go. Now you can enter in your redirects and mod_rewrite rules to make sure your site is search engine friendly! Edit with notepad or something similar.