help with multi plus iis (3 posts)

  1. x2
    Posted 5 years ago #

    We are running wp 3.1.1 with multi enabled. IIS 6. We are currently using helicon isapi rewrite.

    Our rewrite rule is:

    # Helicon ISAPI_Rewrite configuration file # Version
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteLogLevel 9
    LogLevel debug
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    When we visit a subsite, it just shows the content from the main blog. I believe it has something to do with the write engine.

  2. Tim Moore

    Posted 5 years ago #

    In the second to last line, you have two RewriteRule entries on one line. Move the second one to its own line and try it.

  3. scolford
    Posted 4 years ago #

    I have been tearing my hair out over this one as well. It's not due to x2's missing line break. I've got the same code with the proper line break and I see the same behavior. I have no trouble accessing the main blog in my network install, but any subdirectory blogs just redirect to the main one. Or in the instance of a URL such as this:


    I am redirected to the main blog's equivalent:


    Anyone have any luck getting this to work on IIS 6 using Helicon's ISAPI Rewrite 3.0?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.