Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This code redirects all requests from <site domain> /index.html to <site domain> /index.php . \.html - in this case, the backslash plays the role of an escape character. Since in regular expressions (Read more here: Regular expressions ) the symbol . plays the role of <any character>, then in order for it to be perceived by the program as a dot character, and not as an element of the regular expression, it must be escaped. Actually, the \ character does this. That is, after parsing, the web server will receive the RewriteRule ^index.html /index.php string
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question