: What's the "^" in RewriteRule Statements? I keep seeing the ^ character in RewriteRule statements in a context that doesn't fit with the usage specified in this document about regular expressions.
I keep seeing the ^ character in RewriteRule statements in a context that doesn't fit with the usage specified in this document about regular expressions.
For example: RewriteRule ^(.*)$ .php [L,QSA]
What does it signify?
More posts by @Hamaas447
1 Comments
Sorted by latest first Latest Oldest Best
It means "this matches the start of the string". So in your example the rule does the rewrite if there's
the start of the string (^)
any character (.)
any number of the previous character (*)
the end of the string ($)
In other words, this whole expression matches any string.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.