Jump to content
The Uniform Server Community

Server will not load CSS, JavaScript or include files


Recommended Posts

Apache will not load my css and javascript files, nor will it load includes. The site worked fine on someone else's server and works within Dreamweaver (live view). I triple-checked spelling, paths and case in my .htm and .css. I can open the css and js files in my browser: e.g. localhost/css/stylesheet.css. I have started and restarted Apache numerous times and experimented with .htaccess settings, with no success. I will be very grateful for any assistance!




Options +Includes

AddType text/html .htm

AddType text/css .css

AddType application/x-javascript .js

AddHandler server-parsed .htm

Options Indexes FollowSymLinks Includes

RewriteEngine on

# Make URLs case insensitive

CheckSpelling On

CheckCaseOnly on


Example code from webpage:

<link rel="stylesheet" type="text/css" href="/css/style.css" />

<!-- #include file="/includes/header.htm" -->

<script type="text/javascript" src="/js/jquery.nivo.slider.pack.js"></script>

Link to comment
Share on other sites

If CSS not loading, there's a path problem at your config. This is not an Uniserver error.


Everything of your website should in the /www/ folder; Pls post the folder-structure of /www/


Thanks for the reply, traxxus. Through experimenting, I found a solution--remove + from "Options +Includes" and add "AddOutputFilter INCLUDES .htm".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...