http://myweb.com/username/255
http://myweb.com/username/settings
のように私はASP.Net書き換えモジュールを使用しています、成功のサインアップ/ログイン後、URL内のユーザーのユーザー名にしたい、これはhttp://myweb.com/home/255
を生成し、私が現在使用している再書き込みルールの一つであります:
<rule name="HomeRewrite" stopProcessing="true">
<match url="^home$"/>
<conditions>
<add input="{URL}" pattern="\.axd$" negate="true"/>
</conditions>
<action type="Rewrite" url="/home.aspx"/>
</rule>
私は自分自身にこのような何かに変更してみました:
<rule name="HomeRewrite" stopProcessing="true">
<match url="^{R:1}/home$"/>
<conditions>
<add input="{URL}" pattern="\.axd$" negate="true"/>
</conditions>
<action type="Rewrite" url="/home.aspx"/>
</rule>
をしかし、それは働いていないと私はWRをやっている知っていますong。この点でどんな助け?
なぜページルーティングを使用しないのですか?私はルートデータにユーザー名を追加するいくつかのページルーティングコードを持っています。それとも、ブラウザのアドレスバーのURLを変更したいのですか? –