qtwrk
March 24, 2018, 4:14pm
1
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.
qtwrk
March 27, 2018, 9:45pm
3
thank you so much
i can add *.domain.name now
But i dont know
how i do DNS record
i cant add “*” and “@”
qtwrk
March 28, 2018, 8:26pm
5
@sertsidk said:
thank you so much
i can add *.domain.name now
But i dont know
how i do DNS record
i cant add “*” and “@”
you are using cyberpanel as DNS server , right ?
@qtwrk said:
you are using cyberpanel as DNS server , right ?
yes i m usingcyberpanel for DNS server
And useing same domain for name server
qtwrk
March 28, 2018, 10:07pm
7
@sertsidk said:
@qtwrk said:
you are using cyberpanel as DNS server , right ?
yes i m usingcyberpanel for DNS server
And useing same domain for name server
remove that CNAME record.
and also make sure you changed your glue record on your domain provider
@qtwrk said:
,
remove that CNAME record.
thank you so much
your detection is correct
problem is my CHAME record
i am again
i have a problem on permalink now
this site is a wordpresMU . And it is not the same site as above. i have 2 wpmu site on my vps. my first site is ok. i have problem on my second wpmu site.
i m transfered files from hostgator with sftp to my server.
upload SQL with putty.
change permision and user grup
([Tutorial] How to fix permission and user/group problem on CyberPanel. - Blog Posts - CyberPanel Community )
i cant find whey,
because ; first multisite play with permalink. But second multisite not play with permalink.
first multisite instal with cyberpanel, and fiz file permision and user grub same second site
second site transfered from hostgator.
What i can do now?
excuse me for my bad english
fix problem now AND I witnessed a strange situation:
i changed my .htacces file with filezilla and
again changed and edit with file manager on cyberpanel but dont fix
they are useless
BUT : fix is edit with “Rewrite Rules” on cyberpanel
qtwrk
March 29, 2018, 9:50pm
11
@sertsidk said:
fix problem now AND I witnessed a strange situation:
i changed my .htacces file with filezilla and
again changed and edit with file manager on cyberpanel but dont fix
they are useless
BUT : fix is edit with “Rewrite Rules” on cyberpanel
you need to restart OLS once htaccess is modified
@qtwrk said:
you need to restart OLS once htaccess is modified
I am learning by your side
thank you so much
i have a problem now.
how i use ssl on my subsite (with wordpressmu)
my subsites is subdomain or domain on my wpmu
qtwrk
April 6, 2018, 9:29pm
13
@sertsidk said:
@qtwrk said:
you need to restart OLS once htaccess is modified
I am learning by your side
thank you so much
i have a problem now.
how i use ssl on my subsite (with wordpressmu)
my subsites is subdomain or domain on my wpmu
is your wordpress network comes with sub-domains ?
if so , as what i can think of , only 2 ways
manually request and get a Let’s Encrypt cert
buy a wildcard domain , and LE does have , but you need to manually to do it as well …
my multisite on my-domain.com
my sub sites is subs.my-domain.com or other-my-domains.com (i added my-domains on my subsites with mmaping domain plugins)
that is i add ssl without cyberpanel ?
qtwrk
April 8, 2018, 7:53pm
15
@sertsidk said:
my multisite on my-domain.com
my sub sites is subs.my-domain.com or other-my-domains.com (i added my-domains on my subsites with mmaping domain plugins)
that is i add ssl without cyberpanel ?
you will need a wildcard SSL
@qtwrk said:
you will need a wildcard SSL
How i can
i tested this but could not.
"
Obtaining a new certificate
Performing the following challenges:
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
IMPORTANT NOTES:
Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
"
qtwrk
April 9, 2018, 2:17pm
17
:’( I don’t know , I think you better try on Let’s Encrypt continuity regard this wildcard issue , meanwhile I will check this out
i cant do not work email on my multisite ( form or etc ).