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

  1. Click on the Site Services menu if it is not already expanded.
  2. Click on the ♦    Directory Options item.
  3. You should now be looking at the Directory Options Management controls in the main content area.
  4. Locate the Global Directory Options section.
  5. Click the Redirects link.
  6. In the Redirect From column, enter the path, relative to webroot, that you would like to redirect.
  7. In the Redirect To column, enter the URL you would like to redirect to.
  8. 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.
  9. Set the redirect type for this redirect rule.
  10. Click the Add button.
  11. You will see the following message at the top of the screen: » Redirect rule added: global

Procedure - Editing a Redirect Rule

  1. Click on the Site Services menu if it is not already expanded.
  2. Click on the ♦    Directory Options item.
  3. You should now be looking at the Directory Options Management controls in the main content area.
  4. Locate the Global Directory Options section.
  5. Click the Redirects link.
  6. Click the Edit link next to the redirect rule you would like to edit.
  7. In the Redirect From column, enter the path, relative to webroot, that you would like to redirect.
  8. In the Redirect To column, enter the URL you would like to redirect to.
  9. 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.
  10. Set the redirect type for this redirect rule.
  11. Click the Save button.
  12. You will see the following message at the top of the screen: » Redirect rule edited: global

Procedure - Deleting a Redirect Rule

  1. Click on the Site Services menu if it is not already expanded.
  2. Click on the ♦    Directory Options item.
  3. You should now be looking at the Directory Options Management controls in the main content area.
  4. Locate the Global Directory Options section.
  5. 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.
  6. In the dropdown labeled with selected:, choose the Delete... option.
  7. You will be asked to confirm the deletion of the redirect rules. Click the Delete button to finish.
  8. 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
TemporaryReturns a permanent redirect status (301) indicating that the resource has moved permanently.
PermanentReturns a temporary redirect status (302). This is the default.
See OtherReturns a “See Other” status (303) indicating that the resource has been replaced.
GoneReturns a “Gone” status (410) indicating that the resource has been permanently removed. When this status is used the URL argument should be omitted.

COPYRIGHT © InterWorx L.L.C. 2004-2008 PRIVACY POLICYEULA