Forked from NapoleonWils0n/Apache_rewrite_to_Amazon_S3.txt
Last active
December 8, 2015 19:58
-
-
Save raymatos/9655f7ae9fcd2dfbacc9 to your computer and use it in GitHub Desktop.
apache: apache rewrite to amazon s3 bucket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Directory "/www/sitename/folder/"> | |
<IfModule mod_rewrite.c> | |
RewriteEngine ON | |
RewriteCond %{REQUEST_FILENAME} !-f [OR] | |
RewriteCond %{REQUEST_FILENAME} \.php$ | |
RewriteRule ^(.*) http://bucktname.s3.amazonaws.com/folder/$1 | |
</IfModule> | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment