<rule name="blog categories" stopProcessing="true">
<match url="/?blog/categories/([^/]+)/" />
<action type="Redirect" url="/blog/cat={R:1}" />
</rule>
This is the code in web.config might be helpful to you.
my url : capcom/?page=2
I want to remove ‘?’ from the url or ‘/’.
2
Answers
I suggest you just put a canonical url in your , which doesn’t have the query string on it. That might look like:
To use urls like …/page/2 instead of …?page=2 you can add this rule to the rewrite section of your web.config: