|
4 Notices
|
KB Home >
ISAPI Rewrite
>
Isapi Rewrite
|
What is ISAPI Rewrite? ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions. It acts mostly like Apache"s mod_Rewrite, but is designed specifically for Microsoft"s Internet Information Server (IIS). How do I start using ISAPI_Rewrite with my domain? The ISAPI_Rewrite filter is installed on your domain by default. You simply need to upload your httpd.ini file to the /wwwroot folder of your website. You can create your httpd.ini file using notepad. What is the current version of ISAPI Rewrite on your servers? Current version of ISAPI Rewrite installed is FULL VERSION 2.8 Where can I find documentation on using ISAPI Rewrite? Documentation on using ISAPI Rewrite can be found here http://www.isapirewrite.com/docs/ Some Examples and Tips: ISAPI Rewrite Tips - 301 Moved Permanently Redirect Rewrite Tip 1 - Redirect Sub-Domain to Domain For those of you utilizing an ISAPI filter for URI rewriting, here is a quick tip on setting up a 301 Moved Permanently rule for http://example.com/ to http://www.example.com/. RewriteCond Host: ^example\.com RewriteRule (.*) http\://www\.example\.com$1 [I,RP] Just drop the above rule into your local httpd.ini file (ctrl + click to grab the above code). Be sure to always check your Server Headers to verify that the correct HTTP Status Codes are being returned. Rewrite Tip 2 - Redirect Old Page to New Page Here is an example of redirecting an old-page.asp to a new-page.asp... RewriteRule /old-page.asp http://www.example.com/new-page.asp [I,O,RP,L] Just drop the above code in your local httpd.ini file (ctrl + click to grab the above code). This document is still under review and will be updated throughout the week |
Mail |
Print| Additional Info |
![]() |