Skip to content

Instantly share code, notes, and snippets.

View mike-source's full-sized avatar

Mike Smith mike-source

View GitHub Profile
@mike-source
mike-source / composer.json
Last active April 5, 2018 14:42
wordpress composer.json for installs
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
@mike-source
mike-source / .htaccess (Wordpress)
Last active November 21, 2017 11:41
rewrite rules for wordpress with remote uploads
# ----------------------------------------------------------------------
# | Override uploads directory paths for local dev |
# ----------------------------------------------------------------------
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^site\.dev$
RewriteRule ^path/to/uploads/(.*)$ http://site.url/path/to/uploads/$1 [NC,L]