Tag: htaccess

Htaccess tips and tricks

Block IP: <RequireAll> Require all granted Require not ip 1.2.3.4 </RequireAll> Force www, or non www, redirect. #Force www: RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]#Force www: #Force…