I have an url like /register/new-user.
If that url has a parameter such as /register/new-user?a=1 execute itself controller, but if that url does not have any parameters, then execute checkuser controller's newuser action.
However I can't use redirect, because I care about Google indexing.
Could you help me?
UPDATE
I used urlrewrite in webconfig and I solved my problem.
<rule name="rulename" stopProcessing="true">
<match url="^register/newuser$" ignoreCase="false" />
<conditions>
<add input="{QUERY_STRING}" pattern="ref=" negate="true" />
</conditions>
<action type="Rewrite" url="/checkuser" appendQueryString="false"/>
Routeattribute to configure routes with different query string, but not sure that's possible.