Hi - this morning I have noticed that all my styles sheets, including the default, are not being pulled in. They are still there, when I type in the file path, I find them, but for some reason the relative links are not working.
see below:
http://www.churches.id.au/mydrupal/ (this is home)
Embedded Styles from http://www.churches.id.au/mydrupal/
@import "/misc/drupal.css";
@import "/modules/img_assist/img_assist.css";
@import "/themes/friendselectric/style.css";
http://www.churches.id.au/misc/drupal.css (This is the problem here - it is not including the 'mydrupal' part of address!)
404 Not Found
Not Found
The requested URL /misc/drupal.css was not found on this server.
Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.36 Server at www.churches.id.au Port 80
Any indication as to why this could have happened - please let me know.
Comments
$base_url
If this has never been working, then your problem might be your base url setting.
This can be found in:
mydrupal/sites/default/settings.php
You want something like this:
$base_url = 'http://www.churches.id.au/mydrupal/'; // NO trailing slash!
I have recently discovered that if you want to hardcode hyperlinks (say to the contact page), you need to write your urls like this:
href="/mydrupal/?q=contact"
which is fine unless you want to use a test server called, say testdrupal, and upload your data from your live site (becuase your hyperlinks will reference mydrupal instead of testdrupal).
In this case one approach is to create 2 subdomains (if you can easily do so with your hosting package), one for your live site, and one for test. Maybe www.community.churches.id.au, and www.test.churches.id.au
then your base url becomes
$base_url = 'http://www.community.churches.id.au/mydrupal/';
I suggest this now, because it will save you a lot of changes down the track.
I hope this helps.
--
tys
It only changed this morning
Thanks very much for this - the changes only occurred this morning - I am even wondering if my hosting compamy has done something to affect this.
Do I have to change this $base_url setting/link just once? and if so where is the place to change it? I am reluctanct to start editing the core pages - but if this is necessary will do so. I may check out this setting first - mydrupal/sites/default/settings.php
thanks again - this give me a good start - Renaee.
You should not have to edit
Oops, just read the title on your next reply, and so this was unnecessary. (I almost never read the titles on replies, and consider them a misfeature.)
Gary Feldman
yeah I fixed it - closing off the post
thanks again