.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.

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

Example

AryanIct 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:
javascriptkit.com
apache.org
modrewrite.com
Great resource for mod rewrite lessons.
Great resource for mod rewrite examples.


I am going to give you some common dot-htaccess codes our customers love. Simply follow the Related Article link, "Apache mod_rewrite and examples".

Please remember we do not offer support to code this, nor do we promise to make your code work.

  • Email, SSL
  • 12 Users Found This Useful
Was this answer helpful?

Related Articles

How to enable mod_rewrite and mod_speling

To do this, you must understand how to modify and use the .htaccess file. If you need help, feel...

httpd configuration, httpd.conf

The httpd.conf file is only accessible by a system administrator, unless you have a dedicated...

Apache mod_rewrite and examples

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

mod_deflate

Mod_deflate is available on VPS and Dedicated server plans. But, I am on a shared server....

Apache Directives for .htaccess

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