lpgalady
Member
Posted 1 year ago #
HI everyone:
I hope I am not being redundant here with my post but I search through the forum and could not find the issue I was having.
I moved a site from the /wordpress/ folder to the root - now my images do not show.
Even after I re-uploaded the files - the file URLS for the images do not state /wordpress/ in them however...when hovered over on the page - the URL that shows up has the /wordpress/wp-content/uploads in it instead of
just /wp-content/uploads
I am perplexed, please someone help me...I thought moving the folder to the root would not break the images links however that does not seem to be the case.
Any help would be greatly appreciated.
lpgalady
Check your uploads path in Settings->Media.
coopersita
Member
Posted 1 year ago #
lpgalady
Member
Posted 1 year ago #
Yes I checked my uploads path in Settings -> Media - am I supposed to change it from wp-content/uploads or leave it ?
regarding the search and replace plugin - thank you - however I tried to install it and got this error
Installing the plugin…
Destination folder already exists. /home/looneyslaxclub/LooneysLaxClub.com/wp-content/plugins/search-and-replace/
Plugin install failed.
so now I don't know what I have done to get that - never had that happen with a plugin before
I guess maybe it is something in the database...help????
coopersita
Member
Posted 1 year ago #
lpgalady
Member
Posted 1 year ago #
Thanks coopersita - I tried that just now but it is not coming up with anything in the database to change on the query. and it is telling me I have a syntax error but I cannot see where it is
coopersita
Member
Posted 1 year ago #
UPDATE wp_posts set post_content=REPLACE(post_content, 'www.liveServer.com/wordpress/', 'www.liveServer.com/');
You sure you used it as above? I used that same code yesterday, and it worked perfectly.
Are your database tables prefixed with wp_ or something else?
lpgalady
Member
Posted 1 year ago #
Ok that worked - I did use the prefix that was set in database with the wp and that made 11 changes. However....
I went back to my site and added the links back in and
'http://www.looneyslaxclub.com/latest-news/' look at the two links for signing - the /wordpress/ is still in the link and it is giving a 404 error when selected. The urls to the links do not have /wordpress/ in it and the files are on the remote server in the proper location - which is why I am getting the 404 error.
Something else is not correct, do I need to query something other than posts - because these are images and not in posts but pages and widgets.
sorry to be such a pest - appreciate everyone's assistance - I am still new at this - but will need to know this for future migrations of other sites to the root so this problem doesn't continue to occur.
Thank you!
coopersita
Member
Posted 1 year ago #
There are plugins that do search and replace in posts.