Graham's Blog

Categories:

Force the server to treat .html files as if they were .php

<FilesMatch ".html">
ForceType application/x-httpd-php
</FilesMatch>

RedirectMatch

Forward requests for local files to Amazon S3

RedirectMatch /path/to/assets/folder/(.*) http://s3.amazonaws.com/domain/assets/folder/$1

301 Redirect

Redirect 301 /path/to/file.html http://www.domain.com/path/to/new-file.html