mod_rewrite to correct media urls?
-
Move a site to a new host and modified a few things. The final glitch is getting hundreds of linked images from wp-content/uploads to display in posts. Can or should (and how) do I write mod_rewrite in .htaccess to address the issue?
Currently posts have image links as
https://example.com/wp-content/uploads/image.jpg
and this will not display since wordpress is now in its own directory. It can be corrected by changing links to
https://example.com/wordpress/wp-content/uploads/image.jpg
… but for hundreds of images there isn’t an easy way. If I understood phpMyAdmin better, perhaps I could do a search and replace for content (thoughts?) … or is a mod_rewrite a appropriate fix? Suggestions welcomed.
- The topic ‘mod_rewrite to correct media urls?’ is closed to new replies.