RewriteCond %{REQUEST_URI} ^/new/
RewriteRule ^(.*)$ new.php?title=$1 [L,QSA]
im confused as to what this does….
what does the REQEUST_URI do ?
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.
If (
RewriteCond) the requested URI starts with/new/, the scriptnew.phpis called (RewriteRule). It will be passed the requested URI as thetitleparameter, the query string (if any) will be preserved (theQSAflag), and no further rules will be processed after this one (theLflag).i.e.
http://example.com/new/test.htmlwould callhttp://example.com/new.php?title=/new/test.htmlhttp://example.com/new/test2.html?query=test3would callhttp://example.com/new.php?title=/new/test2.html&query=test3