mvcUrl (spring java) is building wrong link when I access my website with https (SSL flexible)


#1

When I access my website by using https, all links are builded with “:80”, so all the links become wrongs. But when I only with http all links are builded without “:80”. How can I to remove “:80” from url when I’m using SSL?


#2

Thats a question for StackOverflow, not here.


#3

But it happens only with SSL CloudFlare. Anyway, thanks.


#4

It happens when your site is addressed via something else than HTTP (respectively another port) apparently, but thats not Cloudflare related.


#5

Really, must be it. I’m using 8080 port and redirecting to 80. Now I’m trying to change default port tomcat to 80, but it isn’t easy for me haha. Thanks.

I’m so confusing because when I access my website without SSL it’s build links “www.site.com/page”, but when it’s with SSL becomes “https://www.site.com:80/page”. Anyway, thanks very much ;).