---
title: "How to create URL redirect rules in SiteWorx"
source: "https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/website-management/url-redirect-rules/"
description: "Use SiteWorx to create redirect URLs."
vertical: "Sites & Stores"
date: "2019-09-10"
last_modified: "2026-07-02"
---

# How to create URL redirect rules in SiteWorx

## Prerequisites

- A back up of your .htaccess file
- An enabled global .htaccess file. For information on creating a global .htaccess file for your site, refer to [How to create htaccess files](https://www.liquidweb.com/blog/how-to-create-htaccess-files/).

## Redirect rule types

The following table describes the most commonly used redirect rules.

| Type | Code | Description |
|---|---|---|
| Permanent | 301 | Returns a permanent redirect status (301), indicating that the resource has moved permanently. |
| Temporary | 302 | Returns a temporary redirect status (302). This is the default. |
| See Other | 303 | Returns a “See Other” status (303), indicating that the resource has been replaced. |
| Gone | 410 | Returns a “Gone” status (410), indicating that the resource has been permanently removed. When this status is used, the URL argument should be omitted. |

## Step by step instructions

Back It Up!

Always back up your .htaccess file before making changes to it.

1. Log in to your SiteWorx account. 
    - If you do not know your password, click Forgot your password on the login page.
2. On the homepage, verify the **Managing Domain** field shows the correct domain. If it does not, select the correct one from the **Change Domain** drop-down list.
3. On the main menu, click **Hosting Features > Htaccess**.
4. In the Global Directory Options section, select the check box corresponding to the desired file, then click **Edit**. In most cases, it will be first file listed.![](https://docs.nexcess.com/wp-content/uploads/2026/06/1568141621108-1568141621108.png)
5. In the Redirects section, click **Add**.  
    ![](https://docs.nexcess.com/wp-content/uploads/2026/06/1568141636722-1568141636722.png)
6. In the **Redirect From** field, type the path, relative to the root directory, to be redirected. In the **Redirect To** field, enter the absolute URL. For example, to redirect from http://yourdomain.com/dir/oldfile.html to http://yourdomain.com/dir/newfile.html, specify the URLs as follows:  
    ![](https://docs.nexcess.com/wp-content/uploads/2026/06/1568141656682-1568141656682.png)
7. From the **Redirect Type** list, select the redirect type for this redirect rule, then click **Save**. See the [redirect rule types section](https://www.nexcess.net/help/how-to-create-url-redirect-rules/#types) for more information.

For more information about additional redirect types, refer to the [Apache](http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect "http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect") documentation.
