Hi all,
This is my problem.
My file structure is as follows:
index.php
folder/otherfiles.php
folder/file.php
folder/folder/file.php
includes/header.php
includes/footer.php
stlye/style.css
up until now I was using a basic include("header.php"); in all my main pages, of which some of them reside in their on folders. Within the header.php file is my stylesheet link:
<link rel="stylesheet" type="text/css" href="<?php echo $styles; ?>/style.css" />
This all worked fine until I wanted to secure some of the registration pages in folder/folder/file.php with https://
Now it states i have unsecure content which i guess now it means the stylesheet and other related items in the header and footer file. I cant do standard relative paths because index.php will not work properly or the other way around the files in the directories wont work properly.
I failed to mention I have config.php file included in the header.php stating that $url ="http://127.0.0.1/hosting/"
How can I get this all to work for myself using PHP and not loosing the link between my stylesheet and the pages that need it?
Any help with this will be gratefully received.