Full paths in attachments hamper data transfer from dev to live sites
-
When I attach a pdf or insert an image, the document defaults to include the entire path in the link url. For instance, if my site is dev.mysite.com and I’m working on a post, the attachment will be linked to
https://dev.mysite.com/wp-content/uploads/2010/12/mydocument.pdf
.
I end up manually deletinghttps://dev.mysite.com
from the link url so they don’t show up when I link the item from the gallery. I’d rather have the gallery define the link url as/wp-content/uploads/2010/12/mydocument.pdf
I’m not the only person working on the dev site, and not everyone cares or is going to remember to remove the domain from the gallery link url when uploading files. Sometimes I forget too.
The fault is compounded when people start inserting gallery items into a post or page because I then have to go through and make sure the urls in my content consistently lack the domain as well.
Why is this important? Because when I move my database and its attachments at
/wp-content/uploads/...
fromhttps://dev.mysite.com
to
https://www.mylivesite.com` all the attachment links in posts break.This frustrates me no end. Please – PLEASE tell me there is a simple setting somewhere in wordpress that will allow me to define attachments with short urls not including domain names. I’m not seeing it.
I will be grateful for any assistance with this.
- The topic ‘Full paths in attachments hamper data transfer from dev to live sites’ is closed to new replies.