Knowledgebase: Website Features
301 and 302 Redirects (e.g. SEO Optimization)
Posted by Joe Rebis (Import) on 17 September 2006 12:36 AM

A.K.A HTTP Rewrite or URL Rewrite

Here are the steps for making a 301 or 302 redirect for search engine optimization reasons. If you prefer, we can implement your redirects for you based on our normally hourly rate for development.

We are running Windows Servers with IIS 6 and have installed a special tool to handle these redirects called ISAPI_Rewrite. It acts mostly like Apache's mod_Rewrite, but is designed specifically for Microsoft's Internet Information Server (IIS). ISAPI_Rewrite is an ISAPI filter written in pure C/C++ so it is extremely fast. ISAPI_Rewrite gives you the freedom to go beyond the standard URL schemes and develop your own scheme.

WARNING: This tool is offered without support or warranty. It's a powerful tool so use it with caution and under advisement from a professional. It is COMPLETELY possible to accidentally block all visitors to your website or get banned from a search engine. Again, we do not suggest using this tag without professional advice and having conducted ample research into it's use and effects. If you are unable to follow the directions below, it is likely you do not have the expertise to implement this tag. We can implement your redirects for you based on our normally hourly rate for development.

Here are the steps:

  1. Create a text file called httpd.ini and upload it into your website's root directory. e.g. wwwroot
  2. Follow the directions at the URL below to write a rule to make your redirect.

http://www.isapirewrite.com/docs/#conffile

(YOU DO NOT NEED TO FOLLOW THE INSTRUCTIONS REGARDING INSTALLATION OF THE PROGRAM - ONLY THE INSTRUCTIONS REGARDING THE CONFIGURATION OF THE ACTUAL HTTPD.INI FILE!)

Here are samples of the two most likely rules you will need:

  1. The first redirects visitors who do not type in WWW when requesting your domain name e.g. http://ephost.com to the same domain but WITH the WWW in front. e.g. http://www.ephost.com.
  2. The second redirects visitors looking for a specific web page to another web page. e.g. http://www.ephost.com/web-hosting-plan5.html to http://www.ephost.com/web-hosting.html

[ISAPI_Rewrite]

#Change the next two lines to your domain which will force URLS to use WWW
RewriteCond Host: your-domain\.com
RewriteRule (.*) http\://www.your-domain.com$1 [I,RP]

#Repeat the following rule - replacing with your page names - for each page you would like 301 redirected
RewriteRule /your-page-name-here\.html http\://www.your-domain.com/your-new-page-name-here.html [I,RP]

Best of luck with your SEO endeavors.

(1638 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Copyright © 2015 EPhost, Inc. All rights reserved.