Support » Fixing WordPress » Sorry, no posts matched your criteria & IIS

  • I’m having a real problem here…my customer is trying to use permalinks on my server and I’ve searched for hours on end, trying everything I could find on the subject and nothing seems to work. If I use anything with index.php in the link, I get “Sorry, no posts matched your criteria.”. However if I use a custom structure without index.php in it, I get the same page for every link.

    Running Win 2003 w/ IIS 6
    Helicon ISAPI Rewrite (yes, it is working – I’ve verified that)

    My .htaccess file (it’s a cluge of a bunch of different trial and errors but it’s the only one that so far has at least gotten rid of “Sorry, no posts matched your criteria”:
    # Helicon ISAPI_Rewrite configuration file
    # Version
    ReWriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    # Rules to ensure that normal content gets through
    RewriteRule /software-files/(.\*) /software-files/$1 [L]
    RewriteRule /images/(.\*) /images/$1 [L]
    RewriteRule /favicon.ico /favicon.ico [L]
    RewriteRule /robots.txt /robots.txt [L]

    # For file-based wordpress content (i.e. theme), admin, etc.
    RewriteRule /wp-(.\*) /wp-$1 [L]

    # Rule to perform 301 redirect to ensure trailing back-slash on post and pages
    RewriteCond Host: (.\*)
    RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]

    # Rule to perform 301 redirect (Remove index.php if specified)
    RewriteRule /index.php/(.\*) /$1 [I,RP]

    # For normal wordpress content, via index.php
    RewriteRule ^/$ /index.php [L]
    RewriteRule /(.\*) /index.php/$1 [L]

    # remove year and month info from permalinks for blog in subdirectory
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([^/]+)/?$$3/ [R=301,L]

    Here’s the page:
    The permalinks are to the right – “Hello! We’re open for business”, “Inspiration” and “October 2008”

  • The topic ‘Sorry, no posts matched your criteria & IIS’ is closed to new replies.