Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am duping a wordpress site to split them to 2 similar but diff sites. The original site is working. Latest WP and Theme.

On dupe site, with Firebug, I get this for thumbs:

.../themes/dandelion_v2.6.3/functions/timthumb.php?src=http://www.avrdev.net/wp-content/uploads/2011/05/PostP-4.jpg&h=130&w=195&zc=1&q=80" style="opacity: 1;">

If in Firebug, I remove the "http://www.avrdev.net" (original site) the thumb appears.

How do I get tim thumb to use a relative URL v the (old) Abs url?

=Alan R.

share|improve this question

closed as off topic by Chip Bennett, s_ha_dum, toscho Feb 6 '13 at 17:28

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
WP in general for images, writes a hard link. I forget about all the nitty gritty, but IIRC it's important to keep it that way. wordpress.org/extend/plugins/search-and-replace A lot of people have success with this plugin to at least rewrite the URLs –  Rev. Voodoo Sep 23 '11 at 11:04
add comment

1 Answer 1

Open PHPmyAdmin, find the database and select it. Once you have selected it by clicking it's name in the left side toolbar of myAdmin it will bring up the db tables. Click on Export from the top toolbar. You can either select Quick, or Custom. If you choose quick, just click the Go button. If you choose Custom, you'll need to click the Select All, or manually select all rows by clicking on the top one and scroll to the bottom, hold down Shift and click the very bottom row. They should all be highlighted blue if selected. Now click Export.

You'll now choose where to save the SQL file. When it finishes downloading, find the file and open it in a text editor like Notepad++. Click to insert the cursor in the top of the file and hold down Ctrl+F to bring up the find panel. Now click on the replace tab. Type in http://www.avrdev.net, and in the Replace dialogue Type the new URL prefix to replace the old. What you've done is replace all instances of old URL with the new. Now save the SQL file and go back to PHPmyAdmin.

You should make sure you have the original SQL file just in case, so if you saved over the one you downloaded earlier, repeat the first step and download the DB by exporting it. Now you will click the db to select it in PHPmyAdmin. CLick the checkbox on the bottom below the DB rows that says Check All. With them checked and selected, click With Selected>Delete. Now click on Import from the top row and navigate to the SQL file you altered to show the new path and upload it.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.