In WordPress posts images urls are absolute or relative to base domain? | Wordpress Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters – maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSSsp_TopicIcon
In WordPress posts images urls are absolute or relative to base domain?
March 12, 2015
3:57 pm
Avatar
Aahz
New Member
Members
Forum Posts: 2
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Hello,

Sorry if my question would seem dumb, as i'm more of a Joomla user, and in Joomla, the editor's default setting for url behaviour is set as relative to base domain, thus when moving a Joomla site to another domain, all images inside articles are kept with unbroken source urls.

In WordPress i noticed that when i open a post with images i see there absolute urls for images, example src=”http://maindomain.com/wp-content/uploads/2015/03/imgo1.jpg”, which indicates me that restoring a WordPress site backup to another domain using XCloner would lead to all images in posts having a broken source url, because the main domain would change.

How does XCloner deal with this issue? How do you move a WordPress site to another domain while keeping post images source urls unbroken?

Thanks a lot!


March 16, 2015
7:50 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

XCloner does not replace the absolute paths in the DB, you need to use another plugin for search and replace like https://wordpress.or…..d-replace/ for this.

March 16, 2015
9:19 am
Avatar
Aahz
New Member
Members
Forum Posts: 2
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Thank you for reply. I kind of figured that out my self these days, and i think it would be a good gesture to mention that fact in XCloner documentation in regard of WordPress migration.

All the best.

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 737
Members: 9955
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Hüseyin Yıldırım
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0