Jump to content

Recommended Posts

Hi all,

 

Someone must have already come across this problem.  My website is configured to load index.php when the url is typed, however, when the page loads, the CSS doesnt load with it, but if you type the url followed by /index.php, the page loads with the CSS and it is the same page as ive checked the source. 

 

Ive even tried absoluting the css and it still doesnt work, im assuming this could be an apache config problem and if so I apologise for posting this topic here.

 

I hope you all understand my query and im so looking forward to a solution as its bugging me!!!!!!!

Link to comment
https://forums.phpfreaks.com/topic/75760-page-doesnt-load-css/
Share on other sites

Loading fine for me in IE6 & 7, FF 2, Safari 3, Opera 9.

 

I would however alter these

 

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

<link rel="stylesheet" type="text/css" href="styloprint.css" media="print" />

 

to

 

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

<link rel="stylesheet" type="text/css" href="/styloprint.css" media="print" />

 

try clearing your cache and see what happens...

Link to comment
https://forums.phpfreaks.com/topic/75760-page-doesnt-load-css/#findComment-383472
Share on other sites

ive tried those changes still the same, its the landing page, but if I then click on home it seems to work.  But if your not having any probs then I guess it should be ok.

 

I read somewhere that adding a Add Type text/css onto a .htaccess file should make it work?

Link to comment
https://forums.phpfreaks.com/topic/75760-page-doesnt-load-css/#findComment-383477
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.