How Do I Change Media Links in WordPress?

If you want to change the media links in your WordPress blog, you can do so by editing the media.php file. To open the media.

php file in a text editor, go to the WordPress root directory (where the WordPress files are stored) and open the wp-config. Find the line that reads:.

define( ‘WP_MEDIA_URL’, ‘http://yourdomain.com/wp-content/themes/yourtheme/media/’);

and replace it with the following:

Now, all of your media files will be located at yourdomain.com/wp-content/themes/yourtheme/media/.