---
title: ".htaccess File Reference List"
description: "The .htaccess files on your server are for making configuration changes to apache on a per directory basis. For more information on what the .htaccess is see our article on What is the .htaccess file..."
url: https://www.inmotionhosting.com/support/website/htaccess-reference-list/
date: 2013-01-24
modified: 2023-11-30
author: "InMotion Hosting Contributor"
categories: ["Website"]
type: post
lang: en
---

# .htaccess File Reference List

The .htaccess files on your server are for making configuration changes to apache on a per directory basis. For more information on what the .htaccess is see our article on [What is the .htaccess file and what do I use it for?](/support/website/htaccess-file/) The following is a list of articles that explain different uses for the .htaccess file.

## URL Rewriting and Redirects

- [Setting up a 301 permanent redirect via .htaccess](/support/website/setting-up-a-301-permanent-redirect-via-htaccess/)
- [How to force www or non-www in htaccess](/support/website/force-www-htaccess/)
- [How to redirect your website to its mobile version](/support/website/mobile-redirect/)
- [Redirecting visitors to an Under Construction page](/support/website/website-design/redirect-visitors-under-construction-page/)

## Security

- [Restrict access with .htaccess and the IP Deny Manager](/support/website/using-the-ip-deny-manager/)
- [Block unwanted users from your site using .htaccess](/support/website/block-unwanted-users-from-your-site-using-htaccess/)
- [How to prevent access to a specific file in htaccess](/support/website/htaccess-prevent-access/)
- [How to prevent access to multiple file types in htaccess](/support/website/htaccess-prevent-filetype/)
- [How to password protect a single file with htaccess](/support/website/password-single-file-htaccess/)
- [How to block a country’s IP ranges in htaccess](/support/website/block-country-ips/)
- [How to password protect a single file with htaccess](/support/website/password-single-file-htaccess/)
- [Hotlink protect files in the .htaccess and cPanel](/support/edu/cpanel/hotlink-protect-htaccess/)
- [Restrict public access to your php.ini](/support/website/restrict-public-access-php-ini/)

## Site Optimization and Performance

- [An introduction to gzip / mod_deflate](/support/website/how-to-enable-gzip-moddeflate/)
- [How to add Apache Module mod_expires in your .htaccess](/support/server/apache/apache-module-mod-expires/)
- [Using two different php versions on your server](/support/website/use-diferent-php-versions-one-account/)

## File Handling

- [How can I make my php.ini file recursive ?](/support/website/recursive-php-ini/)
- [Using Server Side Includes with HTML Files](/support/website/using-server-side-includes-with-html/)
- [How to change your default Index page in htaccess](/support/website/htaccess-change-index-page/)
- [Forcing a file to download in a browser via htaccess](/support/website/force-download-htaccess/)
- [Removing file extensions from displaying in browser via htaccess](/support/website/remove-file-extensions/)
- [How do I enable Hotlink Protection in cPanel?](/support/edu/cpanel/hotlink-protect-htaccess/)
- [How do I execute PHP code in a HTML page?](/support/questions/en/communities/1/topics/2901-how-do-i-execute-php-code-in-a-html-page)

## Error Handling

- [Setting a 404 error page via .htaccess](/support/website/set-custom-404-page/)

## .htaccess Hacks

- [Cleaning up a .htaccess hack](/support/website/cleaning-up-a-htaccess-hack/)

## Miscellaneous

- [Activate Chrome Frame via .htaccess?](https://www.inmotionhosting.com/support/questions/en/communities/1/topics/2914-activate-chrome-frame-via-htaccess)
- [How to change your default timezone in htaccess](/support/website/htacess-change-timezone/)
- [How to show hidden files (htaccess) when using cPanel’s File Manager](/support/website/show-hidden-files-in-file-manager/)

## .htaccess Errors and issues

- [403 Forbidden Error](/support/website/error-numbers/403-forbidden-error/)
- [Can’t update PHP settings in .htaccess](https://www.inmotionhosting.com/support/questions/en/communities/1/topics/3307-cant-update-php-settings-in-htaccess)
- [How do I delete the .htaccess file once I’ve extracted it?](https://www.inmotionhosting.com/support/questions/en/communities/1/topics/3752-how-do-i-delete-the-htaccess-file-once-ive-extracted-it)
- [Why is order allow deny from all in my .htaccess file?](https://www.inmotionhosting.com/support/questions/en/communities/1/topics/3228-why-is-order-allow-deny-from-all-in-my-htaccess-file)
- [Why is Joomla 3.0 not showing a custom error page?](/support/edu/joomla/joomla-3/joomla-generic-error-page/)
- [Do you support Mod_Rewrite?](/support/website/do-you-support-modrewrite/)
- [500 Internal Server Error](/support/website/error-numbers/500-internal-server-error/)
