If I have a file located at http//site.com/files/foo.zip.
How can I rewrite this url to http://site.com/download/foo.zip, so the real URL doesn’t show at all in the user’s browser/download manager ?
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.
I assume you have Apache and mean
.htaccess.Otherwise if you did want to use PHP, you would need to send those requests to a PHP script anyway with URL rewriting.
Update
This won’t do that, your best bet is to move these files above the document root and serve them via PHP.
For example…