SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    396
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    CSS files in a directory throw up a 404 error?

    Hi,

    Apologies for posting here, I have really no idea what sort of category to post this in though, or what could be causing it.

    http://casino.zestdesign.net/themes/...tyles/default/ - every single CSS file results in a 404 error, and as you can see from this page http://casino.zestdesign.net/ - the css doesn't load at all either.

    Any idea what could be causing this please? I've tried re-uploading the files and the permissions are set to 644.

  2. #2
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    396
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I also have no idea why 404 pages on the server go to some weird advert, IXWebHosting are shoddy as hell :/

  3. #3
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    is this an apache server?
    Check out our new Industry News forum!
    Keep up-to-date with the latest SP news in the Community Crier

    I edit the SitePoint Podcast

  4. #4
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    396
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I believe so, I'm almost certain it's running on Linux too if that helps (it was Windows originally but they assured me they switched, not entirely sure though)

  5. #5
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    396
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    System: Linux
    Server API: Apache

    According to the phpinfo() function

  6. #6
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,607
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    xk,

    IF longneck is correct that your problems are associated with Apache, I have two thoughts/suggestions for you:

    1. If you're using mod_rewrite to redirect, the directory level has most likely been changed (requested URI to served file location). This is a function of YOU confusing the visitor's browser into believing it's still at the URI location so all your relative links are wrong (see signature's tutorial article for solutions).

    2. Apache offers a command to allow YOU (as webmaster) to select your own error documents, i.e., ErrorDocument 404 /error404.php will send all 404 errors to the error404 php script in the DocumentRoot.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  7. #7
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    396
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Cheers dklynn, I am using mod_rewrite which is probably causing the problem; I'll post my code later if that's alright? Can't seem to be able to access it from work.

    Many thanks for the error message info too, there's some weird stuff in the host's control panel for creating custom error messages, but frankly it's a massively long-whinded and overly complicated process

  8. #8
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,607
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    xk,

    No problem (with either).

    As far as being able to access your .htaccess file from work, I hope you were trying to get it via FTP as it should NEVER be accessible via http protocol!

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  9. #9
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    396
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yeah, the FTP port is blocked here, and like you said, you can't view it from HTTP - as soon as I get home I'll connect and post up the details, cheers.

  10. #10
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    396
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Bloody gzip! Apologies guys, removed the gzip stuff from the htaccess and it's working a treat now.

    Really, really sorry for asking here - to be honest though the host is so ridiculously unreliable/slow I automatically assumed the fault lied their end, oops.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •