I’m slowly learning mod_rewrite (keyword is slowly) and am using a tutorial’s line of code but I’m stumped as to what one of the symbols in the line mean.
RewriteCond %{REQUEST_URI} ^home|^about
What do the ^ characters mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Apache Regular Expression (or regexp for short) is known as a Perl Compatible Regular Expression (PCRE) engine. If you search the web for PCRE tutorial, you will find hundreds of hits
The ^ character anchors the string to the start of the expression so this means beginning with home or about.