CSS on pages
Posted by: thoko (---.dk.customer.tdc.net)
Date: November 07, 2018 11:58PM

windows10 / wampserver 3.1.4 / apache 2.4.35 .7 /php 7.2.10 / MySQL 8.2.13

I have just moved all my sitedata from a 6 year old Wamp to a new one on a new PC.

When I open a site with wampmanager / localhost I only get the unedited text and images on the index.htm-page. The css-file is not fetched / used.

My folderstructure for a site is:

Wamp64
www
..... sitefolder-nn
.......... subfolder-nn
............... css-folder
.................... filename.css

.......... pagefolder-nn
............... pages
.................... <link rel="stylesheet" href="/subfolder/css-folder/filename.css">
................... pages-subfolder
.................... pages
......................... <link rel="stylesheet" href="/subfolder/css-folder/filename.css">

The subfolder with the css-file (just one af a few subfolders) and the page-folders (about 50) are all on the same level. The pages-folders may contain page-subfolders.

I httpd.conf I have the root as:
ServerRoot "${APACHE_DIR}"

Can the problem be a "missing link" in the path for the css-file or should I look elsewhere?

Options: ReplyQuote
Re: CSS on pages
Posted by: Otomatic (Moderator)
Date: November 08, 2018 08:18AM

Hi,

For local sites, you must use VirtualHost as all hosters.

See THE NEED OF VIRTUALHOST on note at the top of this forum.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.