Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created March 16, 2016 10:19
Show Gist options
  • Save random-robbie/f54aac243f96387cb68d to your computer and use it in GitHub Desktop.
Save random-robbie/f54aac243f96387cb68d to your computer and use it in GitHub Desktop.
Change url in all PHP files
grep -lr --include=*.php "http://example.com" /var/www/example.com/htdocs | xargs sed -i -e 's/http:\/\/example.com/https:\/\/www.example.com/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment