Forum

Rewrite rules for WPMU

tomONapache
15 May 2013, 15:36

Hiawatha version: 9.1
Operating System: Debian 6, openVZ - VPS Debian 6, Wordpress 3.5.1 MU with Buddypress 1.7.1

Hi,

I have tested latest Hiawatha on my server with WPMU (multiuser installation) and rules for WP (single installation), it does work with default permalinks, but it does not work with custom permalinks (postname). Anyone can help me, please ?

Here are Apache's rules in .htaccess :
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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
Hugo Leisink
15 May 2013, 15:42
Match ^/index\.php$ Return

# uploaded files
Match ^/([_0-9a-zA-Z-]+/)?files/(.+) Rewrite /wp-includes/ms-files.php?file=$2

# add a trailing slash to /wp-admin
Match ^/([_0-9a-zA-Z-]+/)?wp-admin$ Rewrite /$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
tomONhiawatha
15 May 2013, 17:14
Wow, a fast answer about rules for a fast server . Big thanks, it seems, that it now works fine on my hiawathaserver. My owncloud runs very fast too. I 'll try to put Ajaxplorer on Hiawatha this week and I 'll test Hiawatha in my community with some 100.000 articles (WPMU). Maybe Hiawatha is really the perfect replacement for "a-patche(d)" server
tomONapache
23 May 2013, 12:37
I tested the Hiawatha with WPMU (and other CMS) ->Hiawatha it is really very nice server.
I found some issues, but maybe it is my wrong configuration of Hiawatha.

1. Log in/out from WPMU got 404 site (security rules or missing rules ?)
2. Html5 or flashplayer doesn´t work
3. After updates of plugins in WPMUbackend comes a blank site, but plugins are updated.
Hugo Leisink
23 May 2013, 13:04
1. This must be a WPMU or incorrect Hiawatha configuration issue.
2. Must be a browser issue. This has nothing to do with Hiawatha.
3. WPMU issue. Very likely that WPMU has only been tested with Apache.
This topic has been closed.