Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Create prompt and template for .htaccess file. #138

Open
Toddses opened this issue Feb 3, 2015 · 0 comments
Open

Create prompt and template for .htaccess file. #138

Toddses opened this issue Feb 3, 2015 · 0 comments

Comments

@Toddses
Copy link
Collaborator

Toddses commented Feb 3, 2015

Add a prompt and option for creating an .htaccess file based on the following template. This will enable pretty permalinks and deny access to .htaccess and wp-config, and we could easily add in the local-config as well.

# 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

# 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant