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
| cd /Applications/MAMP/htdocs/your-site-root | |
| # set 755 permissions for all dirs | |
| find . -type d -exec chmod 755 {} \; | |
| # and 644 for files | |
| find . -type f -exec chmod 644 {} \; |
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
| UPDATE wp_options | |
| SET option_value = 'http://new-domain.com' | |
| WHERE option_name = 'home'; | |
| UPDATE wp_options | |
| SET option_value = 'http://new-domain.com' | |
| WHERE option_name = 'siteurl'; | |
| UPDATE wp_posts | |
| SET post_content = REPLACE(post_content, 'http://old-domain.com', 'http://new-domain.com'); |