Map by category with ISAPI_Rewrite 3
2 posts
• Page 1 of 1
Map by category with ISAPI_Rewrite 3
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!
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!
Re: Map by category with ISAPI_Rewrite 3
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]
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]
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 21 guests