How do I redirect from port 80 to port 8080? : I'm trying to redirect my port 80 to 8080 because the user need not type the url as webapp:8080 to access the web site.

Here's the command that I came across to redirect from port 80 to 8080 :

    sudo iptables -A PREROUTING -t nat -i enp0s25 -p tcp --dport 80 -j REDIRECT --to-port 8080

I'm now able to access the page as webapp/. But the problem now I'm facing is that I'm not able to access the page if I give webapp/ after I restart the system.

I'm getting a google authentication error. How do I fix this?