Support » Plugins » [Plugin: WP Download Monitor] Changing to a new host = broken URLs

  • Hey Guys,

    Two days ago I changed my website´s host, so i got this problem, all my URLs are broken, so I´m wondering if there is a way to change or update all the URLs at once.

    I know that I can change one by one, but, I would like to know if there is a better/easier way to do.

    Thanks everyone!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have a look at the sql database. in the downloads table, you can see the urls.
    Change one of them to the new site address and test it.
    If all OK you can copy and paste in tot he rest.

    You could also write SQL code to do this.

    Thread Starter Sabbra

    (@sabbra)

    Oh thank you very much!

    I was doing like this:
    home/sitename/www/downloads/rest of the adress

    so I changed for
    /downloads/rest of the adress

    i guess that even if change the domain or host, will not have this problem anymore…

    You can do something like (in mySQL):

    UPDATE [YOUR_TABLE_PREFIX]_download_monitor_files SET filename = replace(filename, 'http://your.old.domain', 'http://your.new.domain');
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Download Monitor] Changing to a new host = broken URLs’ is closed to new replies.