Skip to content

Instantly share code, notes, and snippets.

@cmocha
cmocha / .htaccess
Created April 14, 2016 03:24
Apache .htaccess Simple WordPress Settings
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# REWRITE WWW TO NON WWW
RewriteCond %{HTTP_HOST} ^WWW\.(.*)$ [NC]