Skip to content

Instantly share code, notes, and snippets.

View ChrisMKindred's full-sized avatar

Chris Kindred ChrisMKindred

View GitHub Profile
@ChrisMKindred
ChrisMKindred / nginx SEO Config
Created April 22, 2019 21:10
Fix for nginx config file that addresses the duplicate content (SEO issue) that can come from index.php being available at all times in the url.
# after the two lines below add starting at # Remove index.php$ to the config. Remove the previous location / {....} section.
# # FORGE CONFIG (DOT NOT REMOVE!)
# include forge-conf/[domain.tld]/server/*;
#
# Remove index.php$
if ($request_uri ~* "^(.*/)index\.php$") {
return 301 $1;
}
@ChrisMKindred
ChrisMKindred / .editorconfig
Created July 5, 2017 14:50
default .editorconfig for new projects
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# Rules adapted from WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
charset = utf-8
@ChrisMKindred
ChrisMKindred / README.md
Last active June 8, 2017 16:12
WordPress Plugin Install using Composer

using the composer.json file:

  • Replace <license_key> with our Migrate DB Pro license
  • Replace <site_url> with the site url (example.com, don't include http://)
  • run composer install from the WordPress root folder.
@ChrisMKindred
ChrisMKindred / wordpress-ms-subdir.conf
Created May 12, 2017 15:12
This is the multisite config for the do-not-modify folder in flywheel.
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}
location / {
try_files $uri $uri/ /index.php?$args ;
}
@ChrisMKindred
ChrisMKindred / .gitignore
Created May 12, 2017 13:43
WordPress GitIgnore
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
# wordpress specific
wp-config.php