HostGator.com » Support Portal

.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

If you do not code this 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.
Please remember we do not offer support to code this, nor do we promise to make your code work.


Article Comments

Eric
Doesn't every website server already come with a htaccess file? I can't seem to find mine. Do I have to create one myself?

HostGator
It is not included among your files by default. You need to create it.

Eric
Ok, for some reason, the file wasn't showing up in my Cpanel but did appear by accessing the files by my FTP. Don't know why that was but thought I should just let others know if they don't find it either. Thanks

HostGator
When you enter File manager, you must choose the check box for "Show hidden files (dot files)".


If you have read our knowledge base and still have questions or need more information, please contact us via phone or live chat for immediate assistance.

Post Comment