How to create .htaccess files

How to create .htaccess files

Overview
This article shows how to use SiteWorx to create an .htaccess file for the entire domain as well as a specific directory.

Before proceeding

  • Before the .htaccess file features can be used, such as setting Access Control, creating custom error pages, and setting up MIME types, an .htaccess file must be created
  • Options set here will affect the entire site, including sub-domains. The .htaccess file will be installed into the webroot of your site. 
  • If you do not see the Add button, referenced in the following instructions, a domain-wide .htaccess file already exists.

Creating a domain-specific .htaccess file

  1. Log in to your SiteWorx account.
  2. From the main menu, click Hosting Features > Htaccess.
  3. In the Global Directory Options section at the top of the page, click Add.
  4. The following message displays at the top of the page: "The .htaccess file was added: <directory path name>".

Creating a directory-specific .htaccess file

These options will affect only the files within the corresponding directory and its sub-directories.
  1. Log in to your SiteWorx account.
  2. On the main menu, click Hosting Features > Htaccess .

  3. Within the Per Directory Options section, select the directory in which to create the .htaccess file from the Directory drop-down menu.

  4. If you would like the new .htaccess file to be enabled immediately upon creation, select Enabled from the Status drop-down menu.

  5. Click Add.

  6. You will see the following message: "The .htaccess file was added: [directory path name]".


For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Creating and managing custom error pages
Added on Tue, Jul 30, 2013
What is .htpasswd?
Added on Mon, Nov 10, 2014
How to create and manage Apache handlers
Added on Tue, Aug 6, 2013
How to create and manage MIME types
Added on Tue, Aug 6, 2013
How to redirect a non-WWW web address to a WWW web address
Added on Fri, Aug 2, 2013
How to manage index files
Added on Mon, Aug 5, 2013
.htaccess rewrite commands
Added on Tue, Mar 27, 2018
How to create URL redirect rules
Added on Tue, Jul 30, 2013
How to block IPs with .htaccess
Added on Tue, Aug 6, 2013
How to enable and disable .htaccess files with SiteWorx
Added on Mon, Aug 5, 2013