Nexcess Logo

How to create .htaccess files

Knowledge Base Home

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.
September 10, 2019

How Nexcess clients on physical (non-cloud) accounts can create an .htaccess file for the entire domain as well as a specific directory.

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.

Creating a domain-specific .htaccess file

  1. Log in to your SiteWorx account.

  2. From the main menu, click Hosting Features > Htaccess.

    ATTENTION: In Step 3, if you do not see the Add button referenced in the following instructions, a domain-wide .htaccess file already exists.

  3. In the Global Directory Options section, click Add. When prompted, click Add again to confirm.

  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. In the Per Directory Options section, click Add.

  4. select the directory in which to create the .htaccess file from the Directory drop-down menu (1). If you would like the new .htaccess file to be enabled immediately upon creation, select Enabled from the Status drop-down menu (2). Click Add when ready.

  5. 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 your Client Portal.

Jason Dobry
We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.