Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tahmidbintaslim/60ab66d63361611b797a73b9d0b527d7 to your computer and use it in GitHub Desktop.
Save tahmidbintaslim/60ab66d63361611b797a73b9d0b527d7 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