If you have a Linux web hosting plan then you can use the following instructions to create an .htaccess file:
- Open up a text editor on your computer such as Notepad (Windows), TextEdit (Macintosh), or Emacs (Linux). Others are widely available.
- Save the file as .htaccess (including the initial dot).
- Make sure that your text editor did not append a .txt suffix to the file name. (In Windows, you can do this by right-clicking the icon for the text file and selecting Properties.) If the file name does have a .txt suffix (i.e. ‘.htaccess.txt’), remove the suffix by renaming the file.
- Before entering code into your new file, make sure that Word Wrap is turned off. (In Notepad, select Format… from the top navigation bar and make sure that Word Wrap is unchecked. This is important because most .htaccess commands need to be placed on one line only.
- You can now enter your code into the file.
- Upload the .htaccess file via FTP into your web space in ASCII mode or using the online file manager available in your control panel. The .htaccess file will affect the folder that it is uploaded to and all of its subfolders. Also, make sure you have your FTP client set to show hidden files if you want to be able to see your .htaccess file on the server.


Pingback: Pipe Ten Web Hosting Resource » Blog Archive » .htaccess cheat sheet
Pingback: Logging PHP Errors using .htaccess | Web Hosting Resource