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.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.