WordPress.org

Forums

htaccess problem (5 posts)

  1. cre8d
    Member
    Posted 11 years ago #

    Hi,
    I'm trying to solve a problem with WordPress here. I've added the htaccess code that WordPress provided for permalinks and they are working fine.
    However, when I log in, it seems to redirect me back to the main ndex page with a note saying "Sorry, no posts matched your criteria". If I go to /wp-admin/ I get that message, but it shows the admin menu if I go to /wp-admin/index.php. Funnily enough if I go to /images/ I get the "Sorry, no posts matched your criteria" message as well.
    When I remove the .htaccess file, those problems go away. Is there a way to get around this problem?

  2. Mark (podz)
    Support Maven
    Posted 11 years ago #

    Tried clearing your cookies for your site ?

  3. cre8d
    Member
    Posted 11 years ago #

    Sorry should have mentioned that I've cleared cookies.

  4. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    Your permalink structure is too vague. It's basically saying "everything after / is a permalink" so when you enter something that doesn't directly match a file it says "I'm going to look for a post with a post slug of the URL." Try making your permalink structure something more specific, like either of the suggested defaults, or at the very least prefix it like:
    archives/%post_name%

  5. cre8d
    Member
    Posted 11 years ago #

    Ahh brilliant - thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.