confused and need help with IIS 6 install

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 1
Joined: 09 Jul 2013, 19:48

confused and need help with IIS 6 install

09 Jul 2013, 19:53

I'm sorry if this is a question that may have been answered, but i just need some clarification.

I have a windows 2003 server installed. Its running about 25 websites right now. I have one website that i want to create a URL shorten script for.

I installed the program and setup the web server extensions and the ISAPI Filters - its marked with the GREEN up arrow

now i want to implement this and this is where i am not sure what needs to be done.

I want to take a web page www.mysite.com/index.asp?id=400 and shorten that to a URL such as www.mysite.com/banbear/

What do i need to do? The httpd.ini file is under the programs installation folder - do i need to create and move files from that folder to my inetput www root folder for this website?

Sorry if this is a trivial question, but i have read through documentation and honestly i just don't understand what needs to be done in order to accomplish my results. Any help you can give is much appreciated.

thank you

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: confused and need help with IIS 6 install

10 Jul 2013, 09:46

Hello,

You need to put the following rules in httpd.ini in the root of your site:

[ISAPI_Rewrite]

RewriteRule /index.asp\?id=400 http\://www.mysite.com/banbear/ [I,RP]
RewriteRule /banbear/ /index.asp\?id=400 [I,L]

User avatar
Posts: 2
Joined: 17 Jul 2013, 20:32

Re: confused and need help with IIS 6 install

17 Jul 2013, 20:41

I have a similar question for an Windows 2003 IIS 6 server:

My customer has some old pages that are indexed in search engines that no longer exist and they want those pages redirected to a new page on the server.

The old URL looks like this:
http://www.domainname.com/pc/viewCatego ... ategory=61

New URL looks like this:
http://www.domainname.com/catalog/pc/viewCategories.asp

What is the correct syntax to put in the httpd.ini file in the root folder for my website?

Currently the only code I have in teh httpd.ini file is:
[ISAPI_Rewrite]


# Custom rules
RewriteEngine On

User avatar
Posts: 2
Joined: 17 Jul 2013, 20:32

Re: confused and need help with IIS 6 install

17 Jul 2013, 21:14

I finally figured out the correct syntax. Should be:

RewriteRule /catalog/pc/viewCategories.asp\?idCategory=61 /catalog/pc/viewCategories.asp [I,RP]
RewriteRule /catalog/pc/viewCategories.asp/ /catalog/pc/viewCategories.asp\?idCategory=61 [I,L]

Works perfectly.

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 3 guests