Apache Directives for .htaccess

Here is a list of the Apache Directives you can use in the .htaccess file.

  • AddCharSet: Maps the given filename extensions to the specified content charset.
  • AddEncoding: Maps the given filename extensions to the specified encoding type.
  • AddHandler: Maps the given filenames extension to a specific handler name.
  • AddLanguage: Maps the given filename extension to the specified content language.
  • AddType: Maps the given filename extension onto a specified content type.
  • DefaultLanguage: Tells Apache that all files in the directive’s scope that don’t have an explicit language extension should be considered to be in the specified MIME-lang language.
  • ForceType: Forces all matching files to be served as a specific content type.
  • RemoveEncoding: Removes any encoding associations for files with the given extensions.
  • RemoveHandler: Removes any handler associations for files with given extensions.
  • RemoveType: Removes any MIME type associations for files with the given extensions.
  • SetHandler: Forces all matching files to be parsed through a specific handler.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

.htaccess guidance

.htaccess is a special Apache file that tells your website how to function. You can edit the...

About Apache

Apache is the program on our servers used to view web pages. What are the maximum number of...

Apache mod_rewrite and examples

What is mod_rewrite? Mod Rewrite allows you to change the URL that everyone sees when they visit...

Apache Virtual Host

Apache Virtual Host can be managed on a dedicated server. <VirtualHost 74.54.217.194:80>...

Can I access my Apache log files?

Shared and Reseller You can login to cPanel and click the Error Log icon. This contains all the...