Solved WordPress Multisite Subdirectory rules

Hello,

I am trying to setup a wordpress multisite using www/hiawatha

Before moving to www/hiawatha, I copied the rewrite rules for Nginx from various forum as the process is well documented.

But with Hiawatha, I have no idea on how I could achieve the rewrite rules.

Has anyone here has any example to show me please.

I am using sub directory and not sub domain option

Fred
 
..Ok, so far this is my code but its not working..I have path errors
Code:
UrlToolkit {
       ToolkitID = multiwp
       Call scannerblocker
       Match ^/index\.php$ Return
       Match ^/([_0-9a-zA-Z-]+/)?wp-admin$ Redirect /$1wp-admin/
       RequestURI exists Return
       Match ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) Rewrite /$2
       Match ^/([_0-9a-zA-Z-]+/)?(.*\.php)$ Rewrite /$2
       Match .* Rewrite /index.php
}
 
Still in search of a solution..
If anybody want to help, it will be really appreciated :)
Does hiawatha has a mailing list or any kind a community support? You need to subscribe and ask the question there. My instinct with CMS like WordPress is that it is designed for Apache24 possibly Nginx. lighttpd is probably a long shot and hiawatha is very, very long shot. Even if you get WordPress to work you might encounter very weird behaviour later on.

Sorry body. I hate Apache24 kitchen sink with passion but even I have to run it sometime.
 
Hi Oko
Yes I contacted the author, Hugo gave me the code above but he personally does use Wordpress from what I gather.

The CMS work with no problem with Hiawatha when use normally. So far I had no problem and loved the web server:)

The only issue that I found so far is in network site (multisite).

The day I get it to work I might do a how to here :)
 
Here we are after a few weeks....

For those of you who are interested in using Hiawatha with a wordpress multisite/subdomain installtion, here is the Hiawatha rewrite rule that work for me after many tests:
Code:
UrlToolkit {
ToolkitID = wp-multi-subdir
Match ^/index\.php$ Return
Match ^/([_0-9a-zA-Z-]+/)?wp-admin$ Redirect /$1wp-admin/
RequestURI exists Return
Match ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) Rewrite /$2
Match ^/([_0-9a-zA-Z-]+/)?(.*\.php)$ Rewrite /$2
Match ^/[_0-9a-zA-Z-]+(/wp-.*) Rewrite /$1 # if not present 404 - error is displayed when login/logout to the sub website 
Match .* Rewrite /index.php?$1
}

Hope this help someone out there :)
 
Back
Top