Skip to content

Instantly share code, notes, and snippets.

@aktaumag
Created June 5, 2018 06:54
Show Gist options
  • Save aktaumag/c62fbe24b8c101e2021bda3b6f216ec8 to your computer and use it in GitHub Desktop.
Save aktaumag/c62fbe24b8c101e2021bda3b6f216ec8 to your computer and use it in GitHub Desktop.
Как поменять в базе данных все ссылки d постах на относительные. Полезно при перезде на https
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://webseo.kz/', '/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment