Live site images still sourced via temp url?

Category: How To

Jim1vey
Asked:
2013-05-24 12:02 pm EST

Hits: 580
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.

OTHER ANSWERS

1

jamesr
Staff
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. Changing the site URL will not change them in the database. You can fix your database url's by doing the following.

1. Export your Database.
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 Temp url with your domain in the copy of the SQL file.
5. Save the file.
6. Drop the tables in the database on the server.
7. Import the copy of the SQL file into your database.

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).
Jim1vey
19 Points
2013-05-24 3:52 pm EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!