ISAPI (htaccess) issues (1 post)

  1. michaeldevowe
    Posted 6 years ago #

    I have the windows version of mod_rewrite (ISAPI filter) installed on my own WordPress installation.

    Nothing works past mydomain.com/blog/. For instance, I have a picture on my about page (devowe.com/blog/about) but it doesn't show up because the rules in ISAPI point it to devowe.com/blog. That image is located at devowe.com/blog/dl/michael-devowe.jpg. The permalinks work just fine, but if I place any kind of file or folder past /blog/, it dynamically shows the blog homepage with nothing in the post area. What's going on with my rewrites?

    This is my IsapiRewrite4.ini file in the root folder of my site (devowe.com/IsapiRewrite4.ini):

    RewriteCond %{HTTP_HOST} ^www.devowe.com
    RewriteRule (.*) http://devowe.com$1 [R=301,L]
    RewriteBase /blog/
    RewriteCond ${REQUEST_FILENAME} !-f
    RewriteCond ${REQUEST_FILENAME} !-d
    # For special WordPress folders (e.g. theme, admin, etc.)
    RewriteRule /blog/wp-(.*) /blog/wp-$1 [L]
    # For all WordPress pages
    RewriteRule ^/blog/$ /blog/index.php/ [L]
    RewriteRule /blog/(.*) /blog/index.php/$1 [L]

Topic Closed

This topic has been closed to new replies.

About this Topic