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

Aliasing Domains with Proper SEO (domains and Search Engines)

Aliasing a domain to a primary domain is a great way to simplify domain hosting as only one main...

Sending mail via PHP / sendmail

Using PHP's mail() function and/or sendmail will sometimes cause anti-spam filters to filter out...

What is an SSL certificate?

An SSL certificate encrypts data that is sent between the server and you, your computer, your...

Wordpress on Windows IIS7

When installing wordpress on windows servers with IIS7, it is important to use the following...

Parallel Content File Downloads and Cookieless Domains

Parallel Content File DownloadingBrowsers usually have a limit on how many files (images, css,...