Latest WordPress Multisite rules?

Topics: Developer Forum
Nov 18, 2011 at 2:38 PM

Hi

I have the following iirf.ini in Windows Server 2003 + IIS 6 which I have taken from an old post on here but I can't seem to get them working quite right with Iirf 2.1 and WordPress multi site (3.2.1) set up. The issues I am having are as follows and my set up need to NOT redirect .asp, aspx or html files which are in the same root directory:

Working URLS:

http://www.mysite.com/index.php

http://www.mysite.com/wp-admin/

http://www.mysite.com/anotherSite/index.php

http://www.mysite.com/anotherSite/shop/wp-admin/

Not Working:

http://www.mysite.com/postname/

http://www.mysite.com/categoryname/postname/

http://www.mysite.com/anotherSite/

http://www.mysite.com/anotherSite/categoryname/postname/

 

My iirf.ini:

RewriteLog C:\logs\iirf
RewriteLogLevel 3
StatusInquiry ON


RewriteBase /
RewriteRule ^index\.php$ - [L]

#store original URL in custom header (substitute for missing REQUEST_URI header in IIS)
RewriteHeader X-REWRITE-URL:  ^$    %{REQUEST_URI}

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$RedirectRule ^(.+)$ $1/ [R=301]

RedirectRule ^/index\.php/(.*)$ /$1 [I,R=301]
RewriteRule ^/(?!index\.php|wp-|xmlrpc)(.*)$ /index.php/$1 [I,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]