Last active
November 25, 2015 17:38
-
-
Save edheltzel/f4f320c1ad0d4a95db3f to your computer and use it in GitHub Desktop.
Basic .htaccess file for postname permalinksApache rewrite module must be enabled -- mainly used for YeoPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic .htaccess file for postname permalinks | |
# Apache rewrite module must be enabled | |
# Rewrites / Permalinks | |
# ===================== | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress | |
# ReWrite wp-admin | |
# ================ | |
<IfModule mod_rewrite.c> | |
RewriteRule ^admin/(.*)$ wordpress/wp-admin/$1 [R=301,NC,L] | |
</IfModule> | |
# WordPress security | |
# ================== | |
<files .htaccess> | |
order allow,deny | |
deny from all | |
</files> | |
<files wp-config.php> | |
order allow,deny | |
deny from all | |
</files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment