Created
May 29, 2012 00:51
-
-
Save claudiosanches/2821939 to your computer and use it in GitHub Desktop.
Aprenda como modicar o endereço da pasta de mídia do Wordpress.org
This file contains 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
RedirectMatch 301 ^/wp-content/uploads/(.*)$ http://midia.seudominio.com/$1 |
This file contains 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_posts SET post_content = REPLACE(post_content,'http://www.seusite.com/wp-content/uploads/','http://midia.seusite.com/'); | |
UPDATE wp_posts SET guid = REPLACE(guid,'http://www.seusite.com/wp-content/uploads/','http://midia.seusite.com/'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment