You are seeing the old Web Africa website because your version of internet explorer is out of date. Click here to download the latest version.
Web Africa - Home
Register your Domain
www
5 Notices

Linux > .htaccess file - Web Africa > Support KnowledgeBase

KnowledgeBase

Please Enable Javascript
KB Home > Linux > .htaccess file

The .htaccess file

The .htaccess file is a file to make configuration changes on a per directory basis.
This file works well with Apache web server and on Linux.

There are several things that developers, site owners and webmasters can do by using .htaccess file. Here is a few:

* Prevent directory browsing
* Redirect visitors from one page or directory to another
* Change the default index page of a directory
* Prevent hot-linking of images from your website
* Prevent access to your .htaccess file

The .htaccess file allows one to make changes on a per directory basis, therefore valid places for .htaccess file would be:

/.htaccess [placing in root folder of the site]
/content/.htaccess [placing in content folder]
/content/html/images/.htaccess [in the images folder]

However, if there is only one .htaccess file in the root, it will affect the entire site. =]

Please make regular backups of your .htaccess file, as we will not be held accountable for any consequences that arise due to editing you .htaccess file.
The file is hidden, so hidden files will need to be enabled(which should be by default), then you can edit it with your favourite editor. When saving, please save the file with double quotes, [Save file as “.htaccess”], this will save the file as .htaccess file.


Mail | Print


Additional Info
General
Article Number: 132
Views: 1313
Created By: Craig Vine
Date Created: 21/11/2006
Last reviewed by: Aziz Arnold
Last updated: 20/05/2008


Comments
No Comments...



Article Rating
Average Rating: 5 (2 Votes)
Rate this article:
5 (Great!)
4
3
2
1 (Awful!)


Client Log In
User
Pass
Contact
0861-555-222
24 hours a day / 7 days a week
Live Assistance
News
WA acquires Frogfoot consumers MailFire: Email Marketing Launched! Hosting Overage Traffic Price Reduction
Testimonials
WebAfrica truly is the best ISP in SA. After using a few other well-known providers, I think I've finally found my home. Great Service, keep it up!!!
- Eduard Claassen
Privacy PolicyTerms & ConditionsDisclaimerRefund PolicyAcceptable Usage PolicyEmail this page to a friendPrint
ISPA Member Copyright Web Africa 1996 - 2009. All rights reserved.
Site Map | ADSL | Web Hosting | Windows Hosting | Linux Hosting | Reseller | Reseller Hosting | Domain Registration | Dedicated Servers