Skip to content

Instantly share code, notes, and snippets.

@lloc
Forked from jubstuff/.htaccess
Last active August 29, 2015 14:14
Show Gist options
  • Save lloc/784bf23848afb6ff22c0 to your computer and use it in GitHub Desktop.
Save lloc/784bf23848afb6ff22c0 to your computer and use it in GitHub Desktop.
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: [email protected]
core multisite-install:
title: Test WP
description: testwp
url: wptest.dev
admin_user: admin
admin_password: admin
admin_email: [email protected]
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