Contact
Site: US UK AU |

How to create URL redirect rules

How to create URL redirect rules

Before proceeding

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

You must already have an enabled global .htaccess file. For information on creating a global .htaccess file for your site, refer to How to create htaccess files

Redirect rule types

The following table describes the most commonly used redirect rules.

TypeCodeDescription
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.

Procedure

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

    1. Log in to your SiteWorx account.
    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. If you are unsure, contact our Support Team for assistance.


    5. In the Redirects section, click Add.


    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:


    7. From the Redirect Type list, select the redirect type for this redirect rule, then click Save. See the redirect rule types section for more information.

For more information about additional redirect types, refer to the Apache documentation.

 

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to allow or block hostnames and IP addresses
Added on Wed, Jul 31, 2013
Creating and managing custom error pages
Added on Tue, Jul 30, 2013
What is .htpasswd?
Added on Mon, Nov 10, 2014
How to redirect a non-WWW web address to a WWW web address
Added on Fri, Aug 2, 2013
How to create and manage MIME types
Added on Tue, Aug 6, 2013
How to prevent bandwidth theft or Hotlinking
Added on Mon, Aug 5, 2013
How to enable and disable .htaccess files with SiteWorx
Added on Mon, Aug 5, 2013
.htaccess rewrite commands
Added on Tue, Mar 27, 2018
How to create .htaccess files
Added on Fri, Aug 2, 2013
How to block IPs with .htaccess
Added on Tue, Aug 6, 2013