Forum Moderators: phranque

Message Too Old, No Replies

Paths - CSS & SSI Problems

         

Hasdrubal

7:51 am on Oct 17, 2003 (gmt 0)

10+ Year Member



I have some problem with the pages and the css within them.

I tested them on sitea.com and all was working well. When moving the page from my testsite to the real address suddenly all is different and only a part of the css is in place. The layout is totally strange (while it was working for IE,Opera and Mozilla without any mistakes)

The page is on a subserver to make the subdomain possible.

In the directory it is looking:

siteb
siteb/subdomain
siteb/subdomain/index.html

The css file is in:
siteb/subdomain/modules
siteb/subdomain/modules/css
siteb/subdomain/modules/css/cssfile

I also tried to put the cssfile:

siteb/modules/css/cssfile

The href to link to the css= www.siteb.com/modules/css/cssfile

-----------

The same problem I have with SSI which I call in this way:

<!--#include virtual="/modules/files/ssifile4.txt"-->

The SSI files are not loading at all within the subdomain.

anybody who can help me out to solve this problem?

thanks

Nick_W

9:56 am on Oct 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

The problem is not CSS, it's the link by the look of it. You need 'http://www.yoursite.com/path/to/css/file.css'.

PS: That's most likely similar to the SSI probs too. But I'll let the others deal with that ;)

Nick

Hasdrubal

10:51 am on Oct 17, 2003 (gmt 0)

10+ Year Member



Dark corners with hidden surprises.

I deleted all and rebuild the subserver from scratch. The path is not the problem here at all BUT the .htaccess file!

By using ssi within a html page you need to make this possible by .htaccess
The test-pages were working because I had this file in the root.

After uploading .htaccess all was working well.

Thanks for the reply and the help.