Rewrite rule under ISAPI_Rewrite (1 post)

  1. hayley@ohmedia.ca
    Posted 4 years ago #

    Hey there! I'm working on making pretty URL rewrites, but the server the install is on is IIS. ISAPI is up and working, but there's a problem with the rewrite rules and even though I've trouble-ticketed the host I don't think they know exactly what's going on. The following is the rewrite rules they gave me:

    # Force a trailing slash character on folders in the browsers
    RewriteCond Host: (.*)
    RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]
    RewriteRule (.*\.(?:jpg|gif|css|txt|xml|html)) $1 [I,L]
    # For file-based wordpress content (i.e. theme, admin, etc.)
    RewriteRule /wp-(.*) /wp-$1 [L]
    # For normal wordpress content, via index.php
    RewriteRule ^/$ /index.php [L]
    RewriteRule /(.*) /index.php\?$1 [L]*

    Rewrites work if they are in the form of, for example, /index.php/%year%/%monthnum%/%day%/%postname%/ . But not if they are /%year%/%monthnum%/%day%/%postname%/ . The index.php is required.

    Can anyone here please help me out with the rewrite rule? Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by hayley@ohmedia.ca
  • This topic is not resolved
  • WordPress version: 3.0