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.
One Response
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
terminal couldnt finish execution of last line, and i quit. it did not create the file either. so this meyhod either not works or takes too long.
i recommend this one:
http://www.htaccesstools.com/htaccess-faq/#makeHtaccessWin