InMotion Hosting Support Center

Live site images still sourced via temp url?

Category: How To

2013-05-24 12:02 pm EST

Hits: 796
I used a temp url to setup my development site with an addon url and have since taken it live.
In viewing source code for any static urls that I might have inserted in testing, i see that the page images are still coming from the temp url address?(ecbiz123)
I already had remodified the prior WP Config back to the permant url a day ago. Shouldnt the images now be sourced from the permanent url address?

You must login before you can ask a follow up question.

You must login before you can submit an answer.



5,889 Points
2013-05-24 12:29 pm EST
Thank you for your question Jim1vey!

When you add images in the WordPress pages, WordPress stores the file location in the database. This is separate from the Site URL. <a href="" target="_blank">Changing the site URL</a> will not change them in the database. You can fix your database url's by doing the following.

1. <a href="" target="_blank">Export your Database</a>.
2. Make a copy of the SQL file.
3. Open the SQL file with a text editor like notepad.
4. Find and replace every instance of your <a href="" target="_blank">Temp url</a> with your domain in the copy of the SQL file.
5. Save the file.
6. <a href="" target="_blank">Drop the tables in the database on the server</a>.
7. <a href="" target="_blank">Import the copy of the SQL file into your database</a>.

That's it. You should see your images working on the domain now.

Best regards,
James R

You must login before you can post a comment about this answer.

Thank you James - I appreciate it. The images were and are showing fine - i was concerned the image url address could be a problem but have since been advised otherwise (that the the url is just the link to the dabase via the temp url address).
19 Points
2013-05-24 3:52 pm EST
Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

Social Login Joomla

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!