.htaccess guidance

.htaccess is a special Apache file that tells your website how to function.

You can edit the existing .htaccess file on your site, or you can create a new text file in any directory and name it .htaccess

How can I secure my .htaccess file?

The file is already protected; it will be forbidden to browsers. To be very sure, double check that the file is named ".htaccess" and not "htaccess" nor "htaccess.txt". (It must start with a dot.)

Can I delete my .htaccess file permanently?

You can delete the .htaccess file, but it will reappear immediately as a blank file.

Centroot has default directives which will always be in place, unless you create your own directives to overrule ours.

Example

Centroot uses this code as a default, even if you erase and remove the .htaccess file.

DirectoryIndex index.html index.shtml index.php default.html home.html

You can override those defaults by creating your own rules.

DirectoryIndex home.html page1.php index.txt

Online Guides

If you do not code this file correctly, it can cause website errors.

Guides to dot-htaccess coding:
whoishostingthis.com
javascriptkit.com
apache.org
modrewrite.com
Great resource for mod rewrite lessons
Great resource for mod rewrite examples

  • 209 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

Why does my FTP fail to connect?

If your FTP progam is not connecting properly, here are some possible reasons: 1. Your firewall...

How to Use Web FTP or browser-based FTP - IE

Input one of the following URLs into your Address Bar, replacing the credentials listed with your...

Flush DNS

Sometimes there is an issue with your DNS resolvers caching the domain name to IP mapping. When...

How to change the password of your cPanel account

There may be times where you would like to change the password of your account. It is recommended...

Internal Server Error help, 500 error

Internal server errors can be caused by a few different things. Please check the Error Logs in...

Powered by WHMCompleteSolution