This row will certainly cause a little collision as it will try to rewrite the goal itself:
RewriteRule ^/(.*)$ page.php?q=$1 [L,NC]
Now, how do I prevent this?
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.
Just add a condition that the matched string is not the same as the destination:
Here the
!=inRewriteCondindicates a negated lexicographic comparison instead of the implied regular expression comparison.