Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Page links still contain HTTP instead of HTTPS
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Return to the default flat view Create a new topic Submit Reply
Page links still contain HTTP instead of HTTPS [message #187388] Fri, 17 November 2017 11:50 Go to previous message
TonyMarston is currently offline  TonyMarston   United Kingdom
Messages: 32
Registered: April 2006
Location: Surrey, UK
add to buddy list
ignore all messages by this user
My entire site now uses HTTPS, and as a security measure I have also enabled HSTS. Unfortunately even though the forum page is called using HTTPS all links within the page still use HTTP, which includes the <base> tag in the header.

This causes a problem with certain browsers like Firefox because when HSTS is enabled each page is forced to be run using HTTPS, and any links in the page which still use HTTP will be ignored. This means that no CSS files will be loaded, which means that the page is displayed incorrectly. If I turn off HSTS then the problem disappears.

Your code should check if the page is being run using the HTTPS protocol, and if so all the internal links should be switched from HTTP to HTTPS.

Tony Marston
[Message index]
Read Message
Read Message
Read Message
Previous Topic: Can't backup - admdump
Next Topic: Global Settings Manager
Goto Forum:

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Jan 23 15:26:38 EST 2019

Total time taken to generate the page: 0.00665 seconds