Basically, I want to redirect paths like this:
/index.php
/register
/login.html
But not like this:
/img/picture1.jpg
/style/main.css
/js/jquery.js
How can I do this with RegEx?
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.
RewriteRules in.htaccessfiles aren’t passed the initial slash, so all you need to do is check for the presence or absence of any other slashes.