php - Load CSS and JS over HTTPS or HTTP in PMWIKI -


We have a website whose home page is as you see it on pmwiki is based.

We have loaded CSS, JS and other resources on 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>

Which of the Pmwiki php files should we modify?

Steve gets the right link just in /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'; }   

There is no need to modify the 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

More detailed explanation is welcome.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -