Change Wordpress Image URL Change Wordpress Image URL wordpress wordpress

Change Wordpress Image URL


If your URL settings are correct under Settings > General, then you could try using a Search and Replace plugin to update every occurrence in your database.

http://wordpress.org/plugins/search-and-replace/

Search for firouzeh.co.uk/frouzeh/frouzehReplace it with firouzeh.co.uk/frouzeh

Back up your site first :)

If you did just move your site from another location, I suggest using the Duplicator plugin, which handles all of the replacing.

http://wordpress.org/plugins/duplicator/


Use the same solution I wrote for here: https://stackoverflow.com/a/18023214/1946078

It is as follows:

When you move a Wordpress install, you need to also edit two fields in the database. Run this against your database in order to find the values that need to be edited:

SELECT * FROM `wp_options` WHERE option_name IN('siteurl', 'home');

If database access is not an option, another way to do this is by editing your wp-config.php file to include the following two lines:

define('WP_HOME','http://yoursite.com');define('WP_SITEURL','http://yoursite.com');

Straight from http://codex.wordpress.org/Changing_The_Site_URL

  1. The "Home" setting is the address you want people to type in their browser to reach your WordPress blog.
  2. The "Site URL" setting is the address where your WordPress core files reside.


I used the solution from this article:

UPDATE wp_options SET option_value = replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';UPDATE wp_posts SET guid = replace(guid, 'oldurl.com','newurl.com');UPDATE wp_posts SET post_content = replace(post_content, 'oldurl.com', 'newurl.com');UPDATE wp_postmeta SET meta_value = replace(meta_value,'oldurl.com','newurl.com');

After changing the Site URL and WP home in the admin panel.