Category: Code

Few things you can do with .htaccess

This is how you do a 301 redirect. RewriteEngine on RewriteCond %{HTTP_HOST} ^$ [OR] RewriteCond %{HTTP_HOST} ^$ RewriteRule ^/?$ "http\:\/\/www\.mrgeekchris\.com\/wp" [R=301,L] How to allow specific ips and shows guest the error message. ErrorDocument 503 "RESTRICTED AREA " RewriteEngine On # TO ALLOW YOURSELF TO VISIT THE SITE, CHANGE 111 222 333 444 TO YOUR IP