We have a website whose home page is http://bigbird.comp.nus.edu.sg/pmwiki/farm/appl/index.php As you see, it is based on pmwiki.
We find CSS, JS and other resources are loaded over http. That is because links generated by pmwiki's php files are prepended with http://. We want to remove the prepended http://. Links will become like:
<script src="//example.com/script.js"></script>
Which pmwiki's php files should we modify?
Steve finds the right link. Just need to find all urls in
/local/config.phpand modify them as follows:No need to modify the
http://links in your webpages. I have not done further research. I guess the code means: if the page is requested viahttps, the related url becomehttpslinks.More detailed explanations are welcome.