WordPress.org

Ready to get started?Download WordPress

Forums

ISAPI Rewrite and WordPress (2 posts)

  1. mrsolutions
    Member
    Posted 7 years ago #

    I'm trying to get friendly permalinks to work on my IIS windows hosted website.

    I have ISAPI rewriter installed and have placed the following in the httpd.ini in the /wwwroot/ directory.

    My blog is in domain.com/news

    I had my host restart ISS for the changes to take effect but nothing works...

    Here is the code I am using.

    ------------------

    # Rules to redirectd domain.com to http://www.domain.com
    RewriteCond Host: ^domain\.com
    RewriteRule (.*) http\://www\.domain\.com$1 [I,RP]

    # Rules to ensure that normal content gets through
    RewriteRule /news/software-files/(.*) /news/software-files/$1 [L]
    RewriteRule /news/images/(.*) /news/images/$1 [L]
    RewriteRule /news/favicon.ico /news/favicon.ico [L]

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

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

    --------------

    The permalink structure I am using is simply %%postname%%
    However all links to posts and categories 404.

    The domain does not also redirect from domain.com to http://www.domain.com as it should.

    Does anyone know:
    Is there something I am doing wrong or something that could be causeing the problem??

  2. moshu
    Member
    Posted 7 years ago #

    You'd be better off asking these question at the isapi forum...
    http://www.helicontech.com/forum/forum_topics-FID-2.htm

Topic Closed

This topic has been closed to new replies.

About this Topic