espresso Posted February 13, 2012 Report Share Posted February 13, 2012 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! .htaccess: Options +IncludesAddType text/html .htmAddType text/css .cssAddType application/x-javascript .jsAddHandler server-parsed .htmOptions Indexes FollowSymLinks IncludesRewriteEngine on# Make URLs case insensitiveCheckSpelling OnCheckCaseOnly 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> Quote Link to comment Share on other sites More sharing options...
traxxus Posted February 14, 2012 Report Share Posted February 14, 2012 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/ Quote Link to comment Share on other sites More sharing options...
espresso Posted February 14, 2012 Author Report Share Posted February 14, 2012 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". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.