0

The following line is commonly referenced in .htaccess examples for redirecting pages to your React/Vue app when using the respective router's history navigation.

RewriteRule ^index\.html$ - [L]

What does that hyphen after the regex mean? It looks like a rewrite target, but hyphen is not a path name I'm know about.

I looked through https://httpd.apache.org/docs/2.4/rewrite/ but I didn't find anything that told me what the hyphen means in this specific context.

Stephen
  • 2,238
  • 3
  • 28
  • 53
  • 1
    In the Apache docs, it is explained under in reference for the `RewriteRule` directive: https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewriterule – MrWhite Mar 17 '22 at 01:23

0 Answers0