Map by category with ISAPI_Rewrite 3

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 04 May 2013, 05:30

Map by category with ISAPI_Rewrite 3

04 May 2013, 05:32

There are some fruit categories(apple,pear and so on) in my asp.net 'index.aspx' page.

Is there any way to implement something like?:

When client click apple,then the url change to http://www.xxx.com/apple

Which be mapped to 'http://www.xxx.com/index.aspx?fruitcategory=apple'

Click bear:'http://www.xxx.com/bear'

Be mapped to 'http://www.xxx.com/index.aspx?fruitcategory=bear' and so on

Thanks very much!

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

Re: Map by category with ISAPI_Rewrite 3

05 May 2013, 03:56

Hello,

Sure you can do this with ISAPI_Rewrite 3. The config will be like this:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^./]+)/?$ /index.aspx?fruitcategory=$1 [NC,L]

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 21 guests