DM EECK
Back to this add-on's main page
View Other Add-ons From Darren Miller
Moving server creates problems with image paths
Support Request
|
stian
|
| Posted: 11 January 2012 11:46 AM |
|
|
|
|
Let’s say Ive set up a blog on localhost. Using CKEditor and Finder I publish a post, and everything works great.
Then I move the whole thing to a production server, change all paths, so the editor and finder seem to work wonderfully (I can access the finder and browse all my old files, and upload new ones), however in the blog post i published whiel on localhost, the path to the image stored in taht post is still set to “http://localhost…”
Are there any settings that I’m missing, or are those urls simply hard coded, requiring me to open every post i made while on the local server, and change the source of the image manually?
|
|
|
|
|
dmlogic
|
| Posted: 11 January 2012 11:57 AM |
# 1
|
|
|
Developer
|
The URLs are hard coded within the WYSIWYG Editor. You have a few options:
1. Use relative paths for your file location settings and ensure your different environments use the same relative paths. This is the right way to do things. (But you needed to do this at the start)
2. Do a search-and-replace Database update (Google will help there)
3. Use something like Wygwam instead which handles this for you.
But seriously, point number 1 is how you should be doing things. Full URLs to your own site should never be in your content.
|
|
|
|
|
stian
|
| Posted: 11 January 2012 11:59 AM |
# 2
|
|
|
|
Alright, I just did a search and replace. I’ll keep keep #1 in mind for the future. I’m still very new to all of this.
Thanks for the quick reply.
|
|
|
|