.httpaccess

Learning about .httpaccess, some notes I would like to remind

Options -Indexes
# joapen, redirect no www
ReWriteEngine On
RewriteCond %{HTTP_HOST} ^joapen.com
RewriteRule (.*) http://www.joapen.com/$1 [R=301,L]

# avoid perl issues
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]
# joapen ends

Leave a Comment