USING .HTACCESS FILES

INTRODUCTION

The .htaccess file is a powerful tool for modifying your Apache configuration on a per-domain and even a per-directory level. Many content management systems rely on .htaccess files for configuring your site. You can also create your own .htaccess file manually.

CREATING THE .HTACCESS FILE

Your .htaccess file needs to be a plain text file. This means you need to make it in a text editing program capable of producing plain text files.
  • On a Windows machine, you can use Notepad, which is one of your built-in accessories.
  • On a Mac, you can use TextEdit. You must first open the TextEdit "Preferences" menu and, in the "New Document" section, select "Plain text." Then, you can start a new document in TextEdit for your .htaccess file.
When you save your document, make sure you name it htaccess.txt, or something similar. If you save it as .htaccess, your computer will hide the file. This is because files that start with "." are considered to be system files.
USING .HTACCESS FILES Dev2Tricks 5 of 5
INTRODUCTION The  .htaccess  file is a powerful tool for modifying your Apache configuration on a per-domain and even a per-directory le...

Share this

Related Posts

Previous
Next Post »