Home Rewrite rules for asp site with multiple string values
Reply: 0

Rewrite rules for asp site with multiple string values

John
1#
John Published in 2018-02-07 13:00:01Z

I am new to rewrite tools and hence posting question here.

We are using ASP site with IIS 7 Url rewrite 2.0. We are getting an issue where rules are not working for a specific type of pages.

We have two link one is from the oringal web site what ever it generating and other one which we have mentioned in the pages which will convert it to some data I am posting both link which was generating for the same items.

Pleas suggest what will be the rule to print this on the site address bar.

Actual link : http://example.com/itemMatrix.asp?GroupCode=291&MatrixType=1 New link by asp code: http://example.com/291_sikaflex-291-10oz_group.htm

So we need to print the new link in the address bar.

We tried this rule and it did not worked.

RewriteRule ^/([^_]+)_(.*).htm$ /itemMatrix.asp?ic=$1 [L,I]
RewriteRule ^/([^_]+)_(.*).htm$ /itemMatrix.asp?ic=$1&$3 [L,I]

Thanks ~John

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.335563 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO