You are not logged in.

#1 2009-09-23 17:47:53

jerik
Member
Registered: 2009-03-02
Posts: 197

Something wrong with apache

Hi, I've designed a website but when I try to render it through apache it doesn't find my style.css nor the images that are in the same folder as the index.php file. If I open the file as a html file directly in my browser it renders ok. What could be wrong?

Offline

#2 2009-09-23 22:53:48

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Something wrong with apache

Are you using absolute paths when you should be using relative paths?

It's a bit hard to give any more suggestions without seeing the page(s) in question. You're making us fly blind here wink

Offline

#3 2009-09-24 08:18:47

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: Something wrong with apache

Sorry there friends!

The files are in the same folder as the index-file.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>title</title>
<link href="stil.css" rel="stylesheet" type="text/css" />
</head>


<body>

<!-- LOGO -->
<div id="tittel">
         <a href="#" >
         <img src="tittel.png" alt="tittel" align="left" />
         </a>
         <span> </span>
         <br />
         Søk: <form><input type="text"></input></form>
         </div>

<!-- Navigasjon -->
<ul id="nav">
        <li><a href="#">Hoved</a></li>
        <li><a href="#">Artikler</a></li>
        <li><a href="#">Media</a></li>
        <li><a href="#" >Ressurser</a></li>
        <li><a href="#">Kontakt</a></li>
        <li><a href="#">Om...</a></li>
</ul>

<div id="container">

<!-- MENY -->    
    <div id="meny">
        <h1>Om mannen bak</h1>
        <p><img src="meg.jpg" alt="" align="left" /></p>
        <hr />
        <h1>Siste fra ressurser</h1>
        <ul>
            <li><a href="#" >Link</a>    </li>
        </ul>
        
    </div>
<!-- MENY SLUTT -->    

<!-- INNHOLD -->
    <div id="innhold">
        <h1>Velkommen</h1>
        <img src="bilde1.jpg" align="left" alt="dekorasjon" />
        
        <h2><a href="#" >Hoved 2</a></h2>
        <h3>.: Mandag 20. juli 2009 kl 00:51</h3>
        <p><img src="" width="300" height="300" alt="?" /></p>
        <small><a href="#" >Les mer...</a></small>
        
    </div>
<!-- INNHOLD SLUTT -->    

</div>

<!-- Bunntekst -->
<p id="bunn" align="center">(c)2009</p>

</body>
</html>

Offline

#4 2009-09-24 14:15:09

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: Something wrong with apache

Aha, now I got your question as I woke up a bit smile No, I have not done that as you can see... That's what's so weird

Last edited by jerik (2009-09-24 14:15:38)

Offline

#5 2009-09-24 15:31:02

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Something wrong with apache

I usually reference files to the top of the website, which is /. So if all your files are at the top of the website, then the css will be /stil.css.

Offline

Board footer

Powered by FluxBB