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]
(^|/).(?!well-known), I think the right example is:
==> Isn't it just like this
/.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
/.|^.(?!well-known/) as for the proper explanation as below? Or this was my typo possibly.) , is as:
!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.