Creating .htaccess on Windows

by frank on August 21, 2006

in SEO

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.

Was this article useful?

rss feed icon

Email this article to yourself or...

rss feed icon

Subscribe to the RSS feed for more useful articles and tips.

Share this article with others

  • del.icio.us
  • Twitter
  • Reddit
  • StumbleUpon
  • Facebook
  • Digg
  • mehmet ozeren

    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

  • Hoang Long

    It works. After the “copy con…” line, the cursor waits for user to input file content. Just press F6 (end of file mark) and Enter.