Skip to content

Instantly share code, notes, and snippets.

@Marian0
Created October 22, 2015 12:07
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save Marian0/4d689c33164bc9daf0e1 to your computer and use it in GitHub Desktop.
Save Marian0/4d689c33164bc9daf0e1 to your computer and use it in GitHub Desktop.
Disable wordpress Frontend by htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !/wp-admin
RewriteCond %{REQUEST_URI} !/wp-includes
RewriteCond %{REQUEST_URI} !/wp-login\.php$
RewriteCond %{REQUEST_URI} !/wp-content
RewriteCond %{REQUEST_URI} !/feed
RewriteRule (.*) http://www.groween.com/novedades [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment