There appears to be some historic confusion on existing answers in SO on the exact regex to use to match a request for the root directory. eg: ^/$ , ^$ or ^/?$
See the answers here and here. So, let's clarify it
Question:
What is currently valid, 'for 2018' way to match a request to the root dir?
Single case test (with chrome)
I did run a quick test and it seems (with chrome at least) to always match ^$ regardless of how the url was typed, Including /?test. This last bit makes me think the server config matters too.
RewriteRule ^/$ /index-with-slash.html [L,R=301,NE] <-- no hits
RewriteRule ^$ /index-wo-slash.html [L,R=301,NE]