This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: WordPpress Network subfolder rewrites
Author
Message |
philcooling
Newbie


Joined: 29 September 2011
Posts: 3
Posted: 30 September 2011 at 6:46am

For various reasons I am trying to run Wordpress 3.1 on
IIS6 - this works OK but my problem comes when I try to
create a Network (Multisite in the old terminology) using
subfolders. I've got ISAPI_Rewrite3 installed and I've set
the rules up as per the WordPress
http://codex.wordpress.org/Create_A_Network
and created a subsite. The main blog works OK but if I try
and go to the subsite's subfolder I just get redirected
back to the main blog. Any ideas?

Edited by philcooling - 30 September 2011 at 6:48am
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 04 October 2011 at 3:48am

Please, provide the rules you're using and the rewrite.log for the testing request.
Logging issues described in FAQ

Regards
Andrew
Back to Top
 
philcooling
Newbie


Joined: 29 September 2011
Posts: 3
Posted: 04 October 2011 at 6:01am

Thanks for your reply
The Rewrite rules are:

Code:
RewriteLogLevel 9

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# 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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
# END WordPress


...and this is a section from the log file which (I
think!) relates to this problem - I can supply the whole
file if needed but it is quite long!
Code:

(2) init rewrite engine with requested uri /victoriaroad
(1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
(3) applying pattern '^index\.php$' to uri 'victoriaroad'
(3) applying pattern '^([_0-9a-zA-Z-]+/)?files/(.+)' to uri 'victoriaroad'
(3) applying pattern '^([_0-9a-zA-Z-]+/)?wp-admin$' to uri 'victoriaroad'
(3) applying pattern '^' to uri 'victoriaroad'
(4) RewriteCond: input='D:\shares\Websites\wwwroot\WordpressMain\victoriaroad' pattern='-f' => not-matched
(4) RewriteCond: input='D:\shares\Websites\wwwroot\WordpressMain\victoriaroad' pattern='-d' => not-matched
(3) applying pattern '^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)' to uri 'victoriaroad'
(3) applying pattern '^[_0-9a-zA-Z-]+/(.*\.php)$' to uri 'victoriaroad'
(3) applying pattern '.' to uri 'victoriaroad'
(1) Rewrite URL to >> /index.php
(2) rewrite 'victoriaroad' -> '/index.php'
(2) internal redirect with /index.php [INTERNAL REDIRECT]


(2) init rewrite engine with requested uri /index.php
(1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
(3) applying pattern '^index\.php$' to uri 'index.php'
(1) Rewrite URL to >> /index.php
(2) rewrite 'index.php' -> '/index.php'
(2) internal redirect with /index.php [INTERNAL REDIRECT]


(2) init rewrite engine with requested uri /victoriaroad/wp-admin/post-new.php
(1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
(3) applying pattern '^index\.php$' to uri 'victoriaroad/wp-admin/post-new.php'
(3) applying pattern '^([_0-9a-zA-Z-]+/)?files/(.+)' to uri 'victoriaroad/wp-admin/post-new.php'
(3) applying pattern '^([_0-9a-zA-Z-]+/)?wp-admin$' to uri 'victoriaroad/wp-admin/post- new.php'
(3) applying pattern '^' to uri 'victoriaroad/wp-admin/post-new.php'
(4) RewriteCond: input='D:\shares\Websites\wwwroot\WordpressMain\victoriaroad\wp-admin\post-new.php' pattern='-f' => not-matched
(4) RewriteCond: input='D:\shares\Websites\wwwroot\WordpressMain\victoriaroad\wp-admin\post-new.php' pattern='-d' => not-matched
(3) applying pattern '^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)' to uri 'victoriaroad/wp-admin/post-new.php'
(1) Rewrite URL to >> /wp-admin/post-new.php
(2) rewrite 'victoriaroad/wp-admin/post-new.php' -> '/wp-admin/post-new.php'
(2) internal redirect with /wp-admin/post-new.php [INTERNAL REDIRECT]


(2) init rewrite engine with requested uri /wp-admin/post-new.php
(1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
(3) applying pattern '^index\.php$' to uri 'wp-admin/post-new.php'
(3) applying pattern '^([_0-9a-zA-Z-]+/)?files/(.+)' to uri 'wp-admin/post-new.php'
(3) applying pattern '^([_0-9a-zA-Z-]+/)?wp-admin$' to uri 'wp-admin/post-new.php'
(3) applying pattern '^' to uri 'wp-admin/post-new.php'
(4) RewriteCond: input='D:\shares\Websites\wwwroot\WordpressMain\victoriaroad\wp-admin\post-new.php' pattern='-f' => not-matched
(4) RewriteCond: input='D:\shares\Websites\wwwroot\WordpressMain\victoriaroad\wp-admin\post-new.php' pattern='-d' => not-matched
(3) applying pattern '^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)' to uri 'wp-admin/post-new.php'
(3) applying pattern '^[_0-9a-zA-Z-]+/(.*\.php)$' to uri 'wp-admin/post-new.php'
(1) Rewrite URL to >> /post-new.php
(2) rewrite 'wp-admin/post-new.php' -> '/post-new.php'
(2) internal redirect with /post-new.php [INTERNAL REDIRECT]


Edited by AndrushkaUS - 05 October 2011 at 5:40am
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 05 October 2011 at 5:44am

Hi,

I've edited your log so it is more readable. You can see the way the requests are being processed.
I believe you're interested in /victoriaroad/wp-admin/post-new.php request mostly.

There's a way you can do the workaround: you create .htaccess for each sub-directory separately as for a separate wp-site.

Regards
Andrew
Back to Top
 
philcooling
Newbie


Joined: 29 September 2011
Posts: 3
Posted: 05 October 2011 at 8:03am

FYI I've solved this problem!

I added ISAPI_Rewrite.dll to a filters list for an IIS web
site and had not removed it from global ISAPI filters list.
Thus IIS was instructed to call filter twice for each
request. Second run overwrote the X-REWRITE-URL header
value. To fix this I removed the relevant ISAPI filter for
the IIS web site!
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version