![]() |
|
Customer Support
What options are configured with Apache and what can I
do with .htaccess files?
Background information on .htaccess files is in the Apache documentation.Apache on our system is already configured with:
Options Indexes SymLinksIfOwnerMatch ExecCGI IncludesNOEXEC ExecCGIso that you can use .htaccess files to control a wide variety of webserver behavior. FileInfo, AuthConfig, Indexes, Limit and Options are already permitted by the default "AllowOverride All" directive.
AllowOverride All
If you try to alter any of the "Options" in an .htaccess file, you must be careful not to overwrite the Options above that are already set.
You do this by putting a plus or minus sign in front of the Option that you want to change. For example, if you want to get rid of the Option "Indexes", you would put this in an .htaccess file:
Options -IndexesThat would remove Indexes from the list above, but not touch any of the other Options that are already set. To add an Option, just list that Option with a + before it.
When putting file paths in .htaccess (for basic auth and such), be sure you know the true path to your home directory.
PHP values and PHP admin values
PHP directives will not work in your .htaccess files because Modwest runs PHP as a CGI.
User-Contributed Notes |
|
| There are no user-contributed notes for this topic. |
Related Questions:
Why does my website just say "Error 403 Forbidden"?
How do I protect a directory with .htaccess?
How can I show a default page other than index.html?
How do I stop people from getting directory listings when I dont have an index page?
What do the different HTTP Status Codes like 200, 304, 404, 401, 403 mean?
How do I protect a directory with mod_auth_mysql?
How do I stop other websites from using my bandwidth while they steal images, flash, etc. from my site?
Which Apache modules are installed?
How do I make my own Error Documents to replace the default ones like
404 Not Found?How can I make apache recognize different MIME types?
The webservers' Gzip compression is messing up my XML or Flash files for Netscape 4 browsers. How do I turn off compression?
How do I get different character sets to display correctly?
What webserver do you run?
Will I have access to raw logfiles?
I created a symbolic link, and now I am getting a 404 errors.
How do I stop the server from automatically correcting spelling mistakes in URLs or offering multiple choices for documents?
My mod_rewrite rules make my website stop loading.
Why am I getting a 412 Precondition Failed from a website?
How do I protect my website from comment spam?
How do I enforce the use of SSL on my website?
How do I redirect traffic to another web page?
Browse Categories:Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales |

