I don’t read regex very well. Can someone help me understand what exactly this is doing?
RewriteRule ^[!/.]*([\/A-Za-z0-9]+)$ index.php
I have a basic idea, just not concrete clarity, and I don’t want to miss something important.
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.
This regex will match on a url that
All requests for URLs that match this rule will be sent to index.php.
This is a very unusual RewriteRule as it enables URLs like:
This type of rewrite rule is typically intended to direct requests for files/directories that don’t exist to a front controller. Something like this may serve you better: