This regex is confusing. I want to know its exact meaning. I try to explain by myself. I hope I won't get an error understanding. Please kindly correct my thoughts.
RewriteRule "(^|/)\.(?!well-known)" - [F]RewriteRule "/\.|^\.(?!well-known/)" - [F]
About (^|/).(?!well-known), I think the right example is:
.ohya.webserver/ohya/.ohya==> Isn't it just like this/webserver/ohya/.webserver/ohyaas a proper example?
Maybe there are lots of derivative examples but I just raise these four.
The other one, ==> (Isn't it like this /.|^.(?!ohya/)/.|^.(?!well-known/) as for the proper explanation as below? Or this was my typo possibly.) , is as:
/.ohya//.webserver/ohya/.ohya/./webserver/ohya/
!well-known is except of well-known this string. ?!well-known is with or without any previous string such as an directory.
I found a different between their directory path. The above one is without directory. Are there anything else? I hope I don't make a wrong recognition on REGEX.