A fairly basic htaccess question, but I don’t use it much, so i have no idea.
I want to check if the requested file exists. If it does, forward to one page, and if not forward to another page and pass the requested path as GET.
Thanks in advance.
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.
As Gumbo suggested, you can repeat the condition without the
!if you also want to rewrite the URL when a file exists. Maybe you want to ‘protect’ your real files and folders with this method.