Forum Moderators: phranque
Options +FollowSymLinks -MultiViews
ErrorDocument 404 /404.php
AddType application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
<FilesMatch "\.(pdf|PDF)">
ForceType application/pdf
Header set Content-Disposition attachment
</FilesMatch>
RedirectMatch 404 "(index$|index.p$|index.ph$)"
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(php|html)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.example.com/$1 [R=301,L]