Hi. This is not a frequently browsed category, but there is no place else for my question.
I am organizing my site to make it easier and faster to maintain. I keep a small version of my site on my laptop running Apache/PHP. I successfully organized and recoded things to the way I wanted. The root has only the homepage (index.html). I have the style.css file, image files, and header and footer files in a folder called Style. I have pages such as 'About Us' and 'Contact Us' in a folder called Fold_1.
In my aboutus.php file, I access the header and footer files using
<?php> include ('../style/header.php') ?>
In the header.php file, I access the style sheet and images using
< (...) href = "../style/style.css">
In the style.css file, I access the background image using
This works perfectly in Apache/PHP on my laptop.
When I uploaded files coded this way to my live site, NOTHING WORKED. The pages like aboutus.php had no CSS formatting, and no code from the header or footer. It was as if the file was not locating any of the styling files. I was able to have the file find the header and footer by changing the address to
<?php> include ('http://www.sitename.com/style/header.php') ?>
However, the CSS formatting was completely off. The positions of the divisions (left, center, right) were skewed. The positions of the links in the navigation bars in the header and footer were justified left instad if positioned in the center. The paragraph tags within a division were not following their positions or inline styling. I am unable to achieve the formatting I want on the live site, despite many hours of trial and error.
What is going on? Why is it that what works in Apache on my laptop is NOT working in Apache on my service providers server (One and One)? Please help!