This article discusses what .htaccess files are, how to protect them, and how you can use them to customize the web server's configuration for your web site.
The DirectoryIndex directive in an .htaccess file specifies the default page to display when a visitor requests a directory on your web site. Learn how to set this directive here.
This article covers how you can enable directory index listings for directories on your web site that do not have a default directory index page, as well as how to disable directory index listings. Learn how here.
You can use data compression to reduce page load times and the amount of bandwidth your site uses. Learn how to use the Apache mod_deflate module in this article. This article covers how to enable data compression on cPanel (managed) hosting accounts and unmanaged hosting accounts, as well as how to determine if compression is enabled.
Learn how to resolve a "403 Forbidden" error message that may occur when users try to visit your web site. The site's error logs may indicate that the web server cannot access the .htaccess file, or you may be missing an index page. This article covers what could be causing the error, and how to resolve the situation.
Some software packages use URLs with trailing pathname information. This article covers how you can enable support for pathname information in URLs, and how to enable and disable the AcceptPathInfo Apache directive in an .htaccess file.
Do you have a CGI script that isn't working? This article shows several steps you can take to get that script running, both from the command line and cPanel.
By default, a shared hosting account's document root directory for the primary domain is the public_html directory. This article describes how to point the primary domain's document root to a different directory using two different methods.
You can configure your web site to automatically add or remove the www prefix from URLs, and this article shows you how to do both.
If you have a dedicated server, VPS, or Cloud VPS, you can view the raw Apache Access and Error log files for your web server. Learn more about these files here.
You can use Apache's URL rewrite functionality, mod_rewrite, for a number of scenarios, such as improving URL readability and enhancing search engine friendliness. This article provides an introduction to using mod_rewrite.
You can use Apache Server-Side Includes (SSI) to generate dynamic page content and more. This article covers how to enable SSI, and provides several examples of its usage.
There are certain scenarios where filenames may have different cases. For example, if you are migrating a site from Microsoft Windows, you may experience problems with filename case sensitivity. This article explains how to use Apache's mod_speling module to work around these issues. Please note that this article only applies to unmanaged products.
You can use .htaccess directives to modify the HTTP headers Apache sends to a client. Learn how here.
You can use Apache's document expiration functionality to control caching behavior and help improve site performance.
Learn how to prevent your web site from sending entity tags (ETags) in the HTTP headers.
Keep-alive connections can help improve site performance, and this article shows you how to enable them.
There may be times when you want to allow or block access to your site based on a visitor's country. This article shows you how.
Caching enhances the performance of your site but sometimes you need to turn it off. This article shows you how.
This guide will walk you through installing Apache Tomcat.