Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Look for some really smart people to help me solve a routing problem
How would I turn
site.com/page/?x=foo
to
site.com/page/foo
Where "page" is not a static url segment name or path.
Everything I've read in regard to MVC routing and URL rewriting would require a static segment name or path in the url.
Thanks!
As long as the querystring variable is static, this should be possible with URL rewrite.
<rule name="Routing Example" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{QUERY_STRING}" pattern="x=(.+)" negate="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="{HTTP_HOST}{REQUEST_URI}{C:1}" /> </rule>
I'm not 100% sure this answers your question or fit your need. If not you have to elaborate so I'm better able to help :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Complex Routing question
Look for some really smart people to help me solve a routing problem
How would I turn
site.com/page/?x=foo
to
site.com/page/foo
Where "page" is not a static url segment name or path.
Everything I've read in regard to MVC routing and URL rewriting would require a static segment name or path in the url.
Thanks!
As long as the querystring variable is static, this should be possible with URL rewrite.
I'm not 100% sure this answers your question or fit your need. If not you have to elaborate so I'm better able to help :)
is working on a reply...