Table of Contents
How to add a .htaccess file
Prerequisites
Last Updated for InterWorx-CP version 3.0.1
An existing SiteWorx account.
Purpose
Before you can use the .htaccess file features, including Access Control, Custom Error Documents, MIME-Types, etc, a .htaccess file must be created.
Procedure - Add a domain wide .htaccess file
- Click on the menu if it is not already expanded.
- Click on the ♦ Directory Options item.
- You should now be looking at the Directory Options Management controls in the main content area.
- Locate the Global Directory Options section.
- If a domain wide .htaccess file does not already exist, you will see an button. Click this button to add the .htaccess file.
- You will see the following message at the top of the screen: » The .htaccess file was added: directory.
Procedure - Add a directory specific .htaccess file
- Click on the menu if it is not already expanded.
- Click on the ♦ Directory Options item.
- You should now be looking at the Directory Options Management controls in the main content area.
- Locate the Per Directory Options section.
- Choose the directory you want to create this .htaccess file in from the Directory drop-down menu.
- If you would like this new .htaccess file to be immediately enabled upon creation, choose “Enabled” from the Status section.
- Click the button.
- You will see the following message at the top of the screen: » The .htaccess file was added: directory.
