I hereby claim:
- I am colegeissinger on github.
- I am cgeissinger (https://keybase.io/cgeissinger) on keybase.
- I have a public key whose fingerprint is 76B6 369B CF45 0383 4C77 7A4D CB17 FB2D F6F5 2B74
To claim this, I am signing this object:
| # This should be used over the server.conf if you are running on Apache and need .htaccess rewrites. Ref this documentation for more details https://wordpress.org/support/article/htaccess/#wordpress-3-5-and-up | |
| RewriteRule ^(/[_0-9A-Za-z-]+\/?)+(wp-(content|admin|includes).*) $2 [L] | |
| RewriteRule ^(/[_0-9A-Za-z-]+\/?)+(.*\.php)$ $2 [L] |
| # Ensure you change the yoursite.com to the domain you want to use. When assigning user roles, we set a default of 'subscriber' if no user role is set on a user we want to migrate. | |
| # This command assumes we are copying users from the "root site" of WordPress to a subsite. If you want to copy from a sub-site to another sub-site, update the first domain url to match that. | |
| for I in $(wp user list --url=https://yoursite.com/ --fields=user_login,roles --format=csv | grep -v user_login); do WPUSER=$(echo -n $I | cut -d ',' -f 1); WPROLE=$(echo -n $I | cut -d ',' -f 2); wp user update ${WPUSER} --role=${WPROLE:-subscriber} --url=https://my-site.com/new-sub-site/; done |
| #!/usr/bin/env bash | |
| filename="$1" | |
| while IFS="," read f1 | |
| do | |
| # Remove the carriage return on the URL which makes for invalid URL's on some servers. | |
| URL=$(echo $f1 | tr -d '\r') | |
| # Fetch the file. | |
| wget -x -nH "$URL" | |
| done < "$filename" |
I hereby claim:
To claim this, I am signing this object: