Forum

translation of Apache

Erik S
3 April 2015, 21:14
Hello Hugo, could you please help translate these Apache re-write rules or point me in a direction for information to get a WordPress multi-site install to work. These re-write rules are the key. Thank you!
RewriteEngine On
RewriteBase /resume2/
RewriteRule ^index\.php$ - [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]


Hiawatha version: 9.21
Operating System: Puppy Linux Tahr 6.0.2 CE non-PAE
Hugo Leisink
4 April 2015, 08:40
UrlToolkit {
ToolkitID = multisite_wp
Match ^/resume2/.* Rewrite /index.php
Match ^/([_0-9a-zA-Z-]+/)?wp-admin$ Rewrite /$1wp-admin/
RequestURI exists Return
Match ^/$ Return
Match ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) Rewrite /$2
Match ^/([_0-9a-zA-Z-]+/)?(.*\.php)$ Rewrite /$2
Match .* Rewrite /index.php
}
Erik S
4 April 2015, 20:49
Thank you!
Fred
4 April 2015, 22:49
Erik S,

Could you please tell me if this solution Hugo gave you worked or not?
Also is your WordPress multi-site using sub domain or sub directories?

Thank you in advance

Fred
This topic has been closed.