• 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
    http://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
    http://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.

Viewing 1 replies (of 1 total)
  • Thread Starter RichC

    (@richc)

    .htaccess mod_rewrite may not be the way to go. Any resources for phpMyAdmin “find and replace” that could automate correcting the database urls?

Viewing 1 replies (of 1 total)
  • The topic ‘mod_rewrite to correct media urls?’ is closed to new replies.