url rewriting - IIS Rewrite - Creating SEO Friendly URL -
using iis v8 , trying create seo friendly url's
current url follows:
http://www.domain.com/equipment/flexible/technical.cfm?id=2&title=applications
trying create:
http://www.domain.com/equipment/flexible/2/applications
i have following rule added within web.config - doesnt seem working.
<rule name="product technical details"> <match url="^/equipment/flexible/technical.cfm?([0-9]+)/([_0-9a-z-]+)" /> <action type="rewrite" url="/equipment/flexible/technical.cfm?id={r:1}&title={r:2}" /> </rule>
any ideas?
thanks!
your incoming url in format:
http://www.domain.com/equipment/flexible/{id}/{title}
so, can modify rule this:
<rule name="product technical details"> <match url="^equipment/flexible/technical/([0-9]+)/([_0-9a-z-]+)" /> <action type="rewrite" url="equipment/flexible/technical.cfm?id={r:1}&title={r:2}" /> </rule>
edit 1:
domain.com/equipment/flex/technical.cfm?id=2&title=request domain.com/equipment/aero/technical.cfm?id=2&title=basics domain.com/equipment/bulk/technical.cfm?id=2&title=general
would have create individual rules each of above urls? or possible create single rule off above ?
you can update rule this:
<rule name="product technical details"> <match url="^equipment/(flex|aero|bulk)/technical/([0-9]+)/([_0-9a-z-]+)" /> <action type="rewrite" url="equipment/{r:1}/technical.cfm?id={r:2}&title={r:3}" /> </rule>
Comments
Post a Comment