WordPress.org

Ready to get started?Download WordPress

Forums

Screwed up .htaccess (2 posts)

  1. greypilgrim
    Member
    Posted 8 years ago #

    I uploaded a plug-in to display a "printer friendly" version of a blog post, and it required pasting some code into my .htaccess file. Needless to say, I screwed it up somehow. I didn't backup the original .htaccess beforehand because the process looked so simple--just cut and paste. How could I mess up? Right.

    Now, only my main page will show up--no archives or comments. I removed the line of offending code and deleted the plug-in, but still have no access to my site beyond the front page.

    Is there a way to make WordPress generate a new .htaccess file? Or do I need to ask my host to restore the file from a backup?

  2. If you can make it to your admin interface at /wp-admin/, go to Options/Permalinks, delete the offending .htaccess file, and set your permalinks again.

    If you cannot make it to your admin interface at /wp-admin/, delete the offending .htaccess file first, then try to set your permalinks again in Options/Permalinks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.