WordPress.org

Ready to get started?Download WordPress

Forums

Sorry, no posts matched your criteria & IIS (1 post)

  1. itsginc
    Member
    Posted 5 years ago #

    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 3.1.0.56
    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})/([^/]+)/?$ http://ashesandmilk.com/blog/$3/ [R=301,L]

    Here's the page: http://ashesandmilk.com/blog/
    The permalinks are to the right - "Hello! We're open for business", "Inspiration" and "October 2008"

Topic Closed

This topic has been closed to new replies.

About this Topic