ricardots
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moved from root to subfolder. Links in entries are brokenFinally, I am just changing all the URLs to absolute URLs by SQL from phpMyAdmin using REPLACE command. Previously, I imported a backup from the Database. Then, just run a command like:
UPDATE
wp_posts
SET
post_content = REPLACE(post_content,
‘href=”/?’,
‘href=”http://trivinosanchez.com/proyectos/esquince/?’);Thanks for the help!
- This reply was modified 7 years, 3 months ago by ricardots.
Forum: Fixing WordPress
In reply to: Moved from root to subfolder. Links in entries are brokenGood morning, Thomas,
Yes, I have access to admin panel, and I also found that solution. But I don’t think it will work in my case because of the relative paths.
By the way, I see now that the code of the page from my first post has been processed, and the full code is not displayed. What I wanted to show is the links:
-href link is “/?cat=25”
-img src link is “/wp-content/uploads/cabeceras/cab_20120215_final.jpg”When WordPress processes them, it creates URLs without the subdirectories:
“http://trivinosanchez.com/?cat=25”
“http://trivinosanchez.com/wp-content/uploads/cabeceras/cab_20120215_final.jpg”When I would want that the result was:
“http://trivinosanchez.com/proyectos/esquince/?cat=25”
“http://trivinosanchez.com/proyectos/esquince/wp-content/uploads/cabeceras/cab_20120215_final.jpg”When I created the blog, I thought the best way to migrate in the future was to use relative paths, but now I see it’s more problematic than absolute URLs, where I could use the Velvet Blues plugin.
- This reply was modified 7 years, 3 months ago by ricardots.