tomcat - How to load a page from a page without modifying the url in JSP? -
i have web application secured login. if user's session has expired how display error page when user attempts load secured page without causing url pathname change? reason why because don't want reveal extensions using. know specify index page directory i'm looking cleaner solution. avoid modifying standard error code pages (ex: 403/404). loads/redirects on page load nice.
any appreciated. thanks!
if don't want reveal extensions use .htaccess mod-rewrite.
you 2 things make sure hide them. first if request comes page .
character after first /
redirect them same page .
, after stripped off.
secondly mod rewrite page request https://mydomain.com/mypage
gets rewritten server side `https://mydomain.com/mypage.extension
Comments
Post a Comment