Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Is it possible to use mod_rewrite on Amazon S3? -> -> ->


share|improve this question

migrated from Feb 21 '11 at 21:40

This question came from our site for system and network administrators.

How come you haven't just got a CNAME pointing at your S3 bucket? – Piers Karsenbarg Feb 22 '11 at 17:08

1 Answer 1

The examples you shared here don't require rewriterules on amazon s3 itself, the redirections all happen on the site: so either in .htaccess or vhost conf or httpd.conf:

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^/(about|welcome|contact)\.html$ [R,L]

Granted, this will change the URL shown in the browser. If you want to do this without it being so apparent to the end user, then as @piers says, you will need to add a cname for your bucket on s3. and then reference/link to these files at your new address.

share|improve this answer

Your Answer


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