我遇到了一个问题,在这个问题中,漂亮的面孔会导致无限循环,以我的浏览器结束:Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
问题的确切原因
文件结构
漂亮-config.xml片段
<url-mapping id="login">
<pattern value="/login" />
<view-id value="/
我正在尝试重写apache中的url,它在内部将请求重定向到apache tomacat。
下面是我的httpd.conf代码
<IfModule mod_rewrite.c>
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
ProxyPass / http://localhost:8080/myapp/my.html
ProxyPassReverse / http://localhost:8080/myapp/my.html
RewriteEngine on
Re
我目前正在工作的形式,显示电子邮件地址和其他细节的成员,当用户张贴一个广告。了解到这不是一个理想的世界,事情总是发生在你的计划,我希望能够破坏会话和重定向用户登录页面时,有人篡改电子邮件地址字段。我已经成功地破坏了会话,但是在重定向url的同时,按下面所示进行了升级。
表单URL:http://localhost:8080/advert_post_Off.php?productid=31380&advertid=201246998
预期登录页URLhttp://localhost:8080/signin.php?redirect=authenticationerror
重定向网址: h
我正在将我的Action重定向到另一个带有可选参数的urls,并将变量传递给控制器
RedirectToAction("action", new { a, c, s,ds});
but my urls loosk like this
http://localhost:8080/contoller/action?a=1&c=2&s=3&ds=4
but when i directly call teh action the url looks like this
http://localhost:8080/contoller/action/1/