How to create a .htaccess file

Creating a .htaccess is easier then it sounds.

You can create an .htaccess file in any text editor.  When saving on Windows, make sure to use "All file types" options. On Macs, creating a .htaccess file will result in the file disappearing on OS X. As such, it's best to create it as htaccess and then rename it once it's on the server.

You can also create the file via the File Manager located in the control panel.

The .htaccess file is a simple text file that tells apache, the web server, how to behave with files and directories that are accessed. These configuration options only affect the web server, web pages, and nothing else.
  • 91 Users Found This Useful
Was this answer helpful?

Related Articles

http Error codes

The following are http status and error codes that are returned for each file access via a web...

Frontpage Publishing via FTP

Frontpage extensions are not supported on our servers due to bugs in the extensions (some...

How to upload / create your site.

Creating your site How you create your site depends on what you want to do with it.  You...

Changing php.ini directives via .htaccess

A script you want to use requires a different setting then we have set?  No problem, you...

Your own php error.log and displaying errors

Is your script not behaving as expected or producing a white page?   If so, it could be a PHP...