php - Load CSS and JS over HTTPS or HTTP in PMWIKI -
We have a website whose home page is as you see it on We have loaded CSS, JS and other resources on Which of the Pmwiki php files should we modify? Steve gets the right link just in There is no need to modify the More detailed explanation is welcome. pmwiki is based.
http . The reason for this is that the php files of pmwiki are preceded by the links link
http: // we would like to remove the prepaid
http: // as the link :
& lt; Script src = "// example.com/script.js"></script>
/local/config.php URL needs to be found and modify them as follows:
if ($ _SERVER ["HTTPS"] == 'on') {$ farmPubDirUrl = 'https://www.example.com / ~ someuser / pmwiki / pub '; } And {$ farmPubDirUrl = 'http://www.example.com/~someuser/pmwiki/pub'; }
http: // link in your webpages. I have not done further research, I think the code means: if The page is requested through
https , the related URL
https gets linked
Comments
Post a Comment