• Resolved Greg

    (@grinc)


    I recently had to delete my htaccess files of my wordpress sites because of the Antivirus 2009 BS that happened recently. Now my sites are accessible again, but the host is treating clicks on a post title as directory accesses, therefore giving me 404 errors instead of taking me to the post.

    Example:
    sitename.com/post-name/

    Clicking on that would give me a 404 saying there’s no directory called “post-name”

    I’m guessing its because I deleted the htaccess file. How do I restore functionality???

Viewing 1 replies (of 1 total)
  • Clayton James

    (@claytonjames)

    had to delete my htaccess files of my wordpress sites because of the Antivirus 2009 BS that happened recently

    I don’t know how that would affect an .htacces file, but if you deleted it;

    Create a new blank .htaccess file in your WordPress directory via FTP.
    Change permissions to 666 or 777… your choice. Log into your dashboard. Navigate to settings, permalinks, and update permalinks. When done, change the .htaccess permissions back to 644.

    If someone was able to add a rewrite rule to your .htaccess, you have bigger problems.

Viewing 1 replies (of 1 total)
  • The topic ‘How to restore the htaccess contents?’ is closed to new replies.