Skip to content

Instantly share code, notes, and snippets.

@cmocha
cmocha / .htaccess
Created Apr 14, 2016
Apache .htaccess Simple WordPress Settings
View .htaccess
<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]