Skip to content

Instantly share code, notes, and snippets.

@jubstuff jubstuff/.htaccess
Last active Aug 29, 2015

Embed
What would you like to do?
wp-cli.yaml for single wordpress install
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
#!/bin/sh
wp core download
wp core config
wp db create
wp core install
url: http://wptest.dev
color: true
apache_modules:
- mod_rewrite
core download:
locale: it_IT
path: wp-core
core install:
title: Test WP
description: testwp
url: localhost/testwp
admin_user: admin
admin_password: admin
admin_email: admin@testwp.local
core multisite-install:
title: Test WP
description: testwp
url: wptest.dev
admin_user: admin
admin_password: admin
admin_email: admin@testwp.local
core config:
dbuser: user
dbpass: password
dbname: testwp
dbhost: localhost
dbprefix: testwp_
locale: it_IT
extra-php: |
define( 'WP_DEBUG', true );
define( 'WP_POST_REVISIONS', 3 );
define( 'WP_ENV', 'development' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.