Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For legacy reasons I need to serve different files from amazon s3 based on query string parameters. For example myfile.php?type=1 should serve other file than myfile.php?type=2. the files themselves are static.

I successfuly created in a bucket a file named myfile.php?type=1 using S3 php class. But when I try to access it from a browser I get "Access Denied" xml. If I create a file named myfile.php in the same bucket it is accessed when I call myfile.php?type=1 instead of the actual myfile.php?type=1.

How can I make myfile.php?type=1 and myfile.php?type=2 access different files?

Thanks, Niro

share|improve this question

Try to URL encode the ? and = signs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.