Table of Contents
Manage Redirects
Prerequisites
Last Updated for InterWorx-CP version 3.0.1
An existing SiteWorx account. A global .htaccess file (Redirects are only available in the global .htaccess file)
Purpose
Setup redirects from a path relative to the webroot to a URL of another site.
Procedure - Adding a Redirect Rule
- 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.
- Click the Redirects link.
- In the Redirect From column, enter the path, relative to webroot, that you would like to redirect.
- In the Redirect To column, enter the URL you would like to redirect to.
- For example, to redirect from http://yourdomain.com/some/dir to http://www.domain2.com/foo/bar, you would enter “/some/dir” in the Redirect From column and “http://www.domain2.com/foo/bar” in the Redirect To column.
- Set the redirect type for this redirect rule.
- Click the button.
- You will see the following message at the top of the screen: » Redirect rule added: global
Procedure - Editing a Redirect Rule
- 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.
- Click the Redirects link.
- Click the Edit link next to the redirect rule you would like to edit.
- In the Redirect From column, enter the path, relative to webroot, that you would like to redirect.
- In the Redirect To column, enter the URL you would like to redirect to.
- For example, to redirect from http://yourdomain.com/some/dir to http://www.domain2.com/foo/bar, you would enter “/some/dir” in the Redirect From column and “http://www.domain2.com/foo/bar” in the Redirect To column.
- Set the redirect type for this redirect rule.
- Click the button.
- You will see the following message at the top of the screen: » Redirect rule edited: global
Procedure - Deleting a Redirect Rule
- 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.
- Mark the checkboxes for the redirect rules you wish to delete. You may also click the [Check All] link at the bottom of the list to quickly check all the redirect rules.
- In the dropdown labeled with selected:, choose the Delete... option.
- You will be asked to confirm the deletion of the redirect rules. Click the button to finish.
- You will see the following message at the top of the screen: » Redirect successfully deleted: global
Redirect Types
Please see the Apache documentation for more information about the different redirect types.
| Type | Description |
|---|---|
| Temporary | Returns a permanent redirect status (301) indicating that the resource has moved permanently. |
| Permanent | Returns a temporary redirect status (302). This is the default. |
| See Other | Returns a “See Other” status (303) indicating that the resource has been replaced. |
| Gone | Returns a “Gone” status (410) indicating that the resource has been permanently removed. When this status is used the URL argument should be omitted. |
