Skip to content

Instantly share code, notes, and snippets.

@Clorith
Created March 27, 2013 14:02
Show Gist options
  • Save Clorith/5254369 to your computer and use it in GitHub Desktop.
Save Clorith/5254369 to your computer and use it in GitHub Desktop.
WordPress default .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress_clean/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress_clean/index.php [L]
</IfModule>
# END WordPress
@Clorith
Copy link
Author

Clorith commented Mar 27, 2013

Worth noting that Line 9 has a per-setup specific string, in my case /wordpress_clean/ as this is the sub directory I placed my WordPress in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment