First of all you need to follow the Wordpress guide on how to setup multisite here
https://codex.wordpress.org/Create_A_Network
So the only change we have to make in openlitespeed is just rewrite rule
- for sub-folder network , you can use the following rewrite rule:
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^/ - [L]
RewriteRule ^/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^/(.*\\.php)$ $1 [L]
RewriteRule . index.php [L]
- for sub-domain netowkr , you can use the following rewrite rule:
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
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]
But please do remember add wildcard domain to your current listener and DNS records
for example,
add *.your-domain , 2 domains should be separated by , (comma in english)

and also in your DNS records,

PS1. Do remember restart openlitespeed once you changed rewrite rule and/or listener setting to make change effective.
PS2. For Permalink, you will need to change to “plain” and then change back to other form you want , if you don’t do this step , category page will return 404 , I don’t know why and I couldn’t figure this out , but it just works that way …
I have tested as many pages/functions as possible on both sub-domain and sub-folder , please do let me know if you have any issue with it.








