ginfuru
9/2/2015 - 1:17 PM

Basic .htaccess file for postname permalinksApache rewrite module must be enabled -- mainly used for YeoPress

Basic .htaccess file for postname permalinksApache rewrite module must be enabled -- mainly used for YeoPress

# 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>