Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ignoring and untracking Wordpress contents
# contents of wp-content (but not the folder itself)
wp-content/
# both sitemap.xml and sitemap.gzip
sitemap.*
# local config for local dev!
wp-config.php
# override above exclusion to include the blog theme folder and files
!wp-content/themes/michelbergerblog-2013
!wp-content/plugins/mbh-events-calendar
# system created files
*.DS_Store
*[Tt]humbs.db
*.Trashes
# exclude the .htaccess, too, so we don't have to reset permalinks
.htaccess
# attempt to load files from production if they're not in our local version
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) http://michelbergerhotel.com/blog/wp-content/$1
</IfModule>
# define these manually, overriding the values in the SQL database.
define('WP_HOME','http://localhost/~benji/mbh/michelbergerhotel/blog/');
define('WP_SITEURL','http://localhost/~benji/mbh/michelbergerhotel/blog/');
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.