Skip to content

Instantly share code, notes, and snippets.

@makeittotop
Last active September 1, 2016 11:34
Show Gist options
  • Save makeittotop/bb6972c4c94e157888585c66f697fef9 to your computer and use it in GitHub Desktop.
Save makeittotop/bb6972c4c94e157888585c66f697fef9 to your computer and use it in GitHub Desktop.
apache webserver htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_COOKIE} !cfn-auth-cookie=abhishekpareek; [NC]
RewriteRule ^ http://www.google.com [NC,L]
RewriteCond %{REQUEST_URI} ^/xml.*$ [NC]
RewriteRule ^.*$ - [R=404,L]
RewriteCond %{REQUEST_URI} ^wp-(admin|login)(.*)$ [NC]
RewriteRule ^.*$ - [R=404,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/server-status
RewriteRule . /index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment