gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This piece of middleware grabs onto the tail end of process_response hook | |
and allows for redirects to be applied using regex matches. | |
Use Case: A legacy website with many old urls will have accumulated SEO mojo based | |
on external links. When the site is converted to a new fromat (say, drops the cruft like '.html') | |
or goes from abbreviated forms /art/id/t/234234 to /article/2014/january/technology/get-a-better-job | |
the old urls are at risk of breakage and could lose SEO mojo unless preserved | |
Best preservation comes from redirecting old content to new, which is easily accomplished |