Style.css redirects to 404 Page not found

I’ve just uploaded a wordpress site from MAMP to a live site. Exactly the same methods I usually use to upload them, including permalinks and all the usual PHPMyAdmin bits.

This time the style.css, js and all the images are just redirecting to a 404 page.

The website is here

Can anyone help? This makes no sense at all.

EDIT: heres a snippit of header.php:

<!DOCTYPE html>
<html lang='en'>
    <head>
        <!-- Version 1.0 of Ken Christys Rural Support Website -->
        <meta charset="utf-8">
        <meta content="width=device-width, initial-scale=1.0" name="viewport">
        <meta content="Josh Stevens, Lyndsay Hooper, PotatoMou.se" name="author">
        <meta content="https://wordpress.stackexchange.com/questions/141962/<?php bloginfo("description' ); ?> ' name="description">
        <meta content="" name="keywords"> 
        <script>
            if(!window.jQuery)
                {
                     var script = document.createElement('script');
                     script.type = "text/javascript";
                     script.src = "http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js";
                     document.getElementsByTagName('head')[0].appendChild(script);
                }
        </script>


        <!-- Google Analytics-->

        <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascript/pace.js"></script>
        <link rel="stylesheet" type="text/css" media="all" href="https://wordpress.stackexchange.com/questions/141962/<?php bloginfo("stylesheet_url' ); ?>" />

        <title>
            <?php echo get_the_title() . "  -  ". get_bloginfo ( 'description' );  ?><br />
            <!-- Current Page title - Website description -->
        </title>



    </head>

and here is the actual rendered code:

<!---->
<!DOCTYPE html>
    <html lang='en'>
    <head>
        <!-- Version 1.0 of Ken Christys Rural Support Website -->
        <meta charset="utf-8">
        <meta content="width=device-width, initial-scale=1.0" name="viewport">
        <meta content="Josh Stevens, Lyndsay Hooper, PotatoMou.se" name="author">
        <meta content="Ken Christy Rural Support " name="description">
        <meta content="" name="keywords"> 
        <script>
            if(!window.jQuery)
                {
                     var script = document.createElement('script');
                     script.type = "text/javascript";
                     script.src = "http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js";
                     document.getElementsByTagName('head')[0].appendChild(script);
                }
        </script>


        <!-- Google Analytics-->

        <script type="text/javascript" src="http://www.kenchristy-ruralsupport.com/wp-content/themes/KenChristy/javascript/pace.js"></script>
        <link rel="stylesheet" type="text/css" media="all" href="http://www.kenchristy-ruralsupport.com/wp-content/themes/KenChristy/style.css" />

        <title>
            Home  -  Ken Christy Rural Support<br />
            <!-- Current Page title - Website description -->
        </title>

4 Answers
4

Your directory permissions for your Theme directory are incorrect.

  • wp-content: 0755
  • wp-content/themes: 0755
  • wp-content/themes/kenchristy: 0700

Per the Codex, folder permissions should be set to 755:

In such an suexec configuration, the correct permissions scheme is simple to understand.

  • All files should be owned by the actual user’s account, not the user
    account used for the httpd process.
  • Group ownership is irrelevant, unless there’s specific group
    requirements for the web-server process permissions checking. This is
    not usually the case.
  • All directories should be 755 or 750.
  • All files should be 644 or 640. Exception: wp-config.php should be
    600 to prevent other users on the server from reading it.
  • No directories should ever be given 777, even upload directories.
    Since the php process is running as the owner of the files, it gets
    the owners permissions and can write to even a 755 directory.

So, try changing wp-content/themes/kenchristy/ from 0700 to 0755.

Leave a Comment