我需要帮助的问题,我们是附加特殊字符,如%与URL。假设我的应用程序URL是"“。
我们有我们的自定义错误页面,当服务器找不到URL地址时就会出现。场景1:点击":-在正确的自定义错误页面上重定向。
场景2:点击":--而不是在我自己的自定义页面上重定向,而是显示消息"this page is not working HTTP ERROR 400“。
我们在web.xml中使用下面的代码来处理页面未找到异常。
<error-page>
<error-code>404</error-code>
<location>
这些是来自我的两个本地主机站点的.htaccess文件。
虚拟主机1 (mysite1.com):
# this is the initialization
Options +FollowSymLinks
RewriteEngine On # Turn on the rewriting engine
RewriteRule ^news-07/?$ news_01_06_2007.php [NC,L]
# Handle requests for "news"
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule