Click here to Skip to main content
15,889,732 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends, I'm trying to redirect one page to another with tomcat using Rewrite.config, but I can not get what I want. I have three page: index.jsp, login.jsp and Newlogin.jsp. I want to redirect the login.jsp page to NewLogin.jsp, but now it has swapped all pages through newloging.jsp.

Please help me.

What I have tried:

The code I have in the rewrite.config file is as follows:
RewriteCond %{REQUEST_URI} ^/(css|img|js|partials|rest|favicon).*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ - [L]

RewriteRule ^.*$ /newlogin.jsp [L,QSA]
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900