这是我的网址: http://www.domain.com/advertenties/advertentie-delen/?id=23&t=1&url=ad-placed-for-simons-company-by-me
使用下面的重写规则,我收到此错误:“由于发生内部服务器错误,无法显示该页面”
<rule name="share ad">
<match url="^advertenties/advertentie-delen?/?$" />
<action type="Rewrite" url="share_email.aspx?id={R:1}" appendQueryString="true" />
</rule>
This is my url: http://www.domain.com/advertenties/advertentie-delen/?id=23&t=1&url=ad-placed-for-simons-company-by-me
With the rewrite rule below I get this error: "The page cannot be displayed because an internal server error has occurred"
<rule name="share ad">
<match url="^advertenties/advertentie-delen?/?$" />
<action type="Rewrite" url="share_email.aspx?id={R:1}" appendQueryString="true" />
</rule>
发布评论
评论(1)
找到了。它表示“id={R:1}”,这意味着它需要匹配 url 标记上的变量。由于没有变量,它会引发错误,这就是我现在所拥有的:
Found it. It says this "id={R:1}",which means it expects a variable on the match url tag. Since there was no variable it throws an error, this is what I have now: