July 16, 2010

Create a htaccess file

by Karine in Beginner with no response

To avoid always repeating it in the tutorials, I will explain here how to create your .htaccess file.

  1. Open a text editor like Text Edit (mac) or Notepad (windows)
  2. Write/Paste what you have to put in your htaccess file
  3. Save it as htaccess.txt
  4. Upload htaccess.txt on your server
  5. Rename it .htaccess (exactly like this .htaccess)

How to know if you already have a .htaccess file ? Open your FTP software and go to the root of your server, is there any .htaccess file ? Maybe the file is hidden so you have to tell your FTP soft to display hidden files. If it already exists, just download it, add your changes and re-upload it (overwrite the existing one).

Be always careful with .htaccess files ! If you get any errors, delete it or revert it to the old version, you might have done something wrong with it.

Be Sociable, Share!

Tags

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.

↑ Back to Top