Fixing Broken Links WordPress

Using the wp-cli

1
2
3
4
5
6
7
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp --info
cd /var/www/html/
wp search-replace '192.168.10.100' 'www.itsmetor.com' --all-tables

Leave a Reply