Your hosting can make or break your site. Choosing the right host will undoubtedly determine your fate. Here you\'ll learn how it\' done.  Home Site Maintenance Hosting Services Introduction to .htaccess
Your Ad Here

Introduction to .htaccess

Browse Pages: 2  3  4  5  > >>

.htaccess is a Unix/Linux based file for Apache web servers that allow you to change access permissions and many other things for files on your web server.

To make a .htaccess file, open up an html editor, preferably notepad, and enter your commands(each on a seperate line). When saving your file in Notepad, enter .htaccess as the file name and choose All Files for save as type. It is very important that you don't save it as a .txt file.

htaccessWhen the .htaccess file is placed in the root directory, it will also affect all other directories below it. If you place it in a subdirectory it will affect all the files of that directory. Note that any .htaccess file in the root directory will override those in subdirectories.

When uploading your .htaccess file through ftp, make sure you are in ASCII mode, not binary. Most web servers will hide all of the files that start with a period. In order to view your .htaccess file in ftp, your will need to place -la or -al as shown to the left using WS_FTP. If you are using an ftp other then WS_FTP, you may need to check your help files to find out what method you need to use.

In order to prevent others from viewing the contents of your .htaccess file, place the following in the file.

<Files .htaccess>
order allow,deny
deny from all
</Files>


Author's URL: Depiction.net
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
Browse Pages: 2  3  4  5  > >>
print this page subscribe to newsletter subscribe to rss

Read about the most important web services: web promotion, domain registration and website hosting. All web developers need this website maintenance stuff. More Site Maintenance: Most Popular Materials | Fresh Materials | Website Templates

Add comments to "Introduction to .htaccess"

Only registered users can write comment

No comments yet...