Reputation: 2159
I'm not a wordpress person - but I had to move Wordpress to a subdirectory from root for a person the other day.
I followed the steps on the Wordpress site - and everything transferred fine. All the articles, logins, etc. display fine.
The issue is the images in the articles - they are linking to the old address (from root: www.domain.com/link/to/image); the images are now in a subdirectory (www.domain.com/blog/link/to/image)
What is the best way to resolve that? Obviously going into each article and re-linking would solve the issue but is there an easier, less time-intensive way? .htaccess? some other bit of coding that would be helpful? Again, I'm not a wordpress guy so I'm not sure what would be the best way to do this but I would think there has to be something besides manually going through blog posts?
Upvotes: 1
Views: 3532
Reputation: 17561
Search RegEx is a good plugin to be able to search and replace with Grep through all posts and pages.
Upvotes: 0
Reputation: 636
Have you tried going to: Settings in WP-Admin >> Media Settings Then try changing both:
"Store uploads in this folder" Default is wp-content/uploads "Full URL path to files" Configuring this is optional. By default, it should be blank.
This should do the trick
Upvotes: 1