Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Server will not load CSS, JavaScript or include files

Featured Replies

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 +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>

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/

  • Author

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".

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.