Support » Fixing WordPress » Replace dropbox link with domain link

  • Hello friends
    I want to replace about 500 Dropbox links with site links?
    The structure of the dashbox links is generally as follows

    The part /s/ and wr98mnbgtrxf5z is different for each link
    How can I replace these links with the following sample link with a query in phpmyadmin?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not a Requests and Feedback topic.

    I’ve removed your example links, they looked dodgy and were just example URLs from you.

    Replace dropbox link with domain link

    This is not a WordPress topic. You’re asking if you can have your custom URL download a file from Dropbox. 500 different files. I’ve no idea if Dropbox supports custom URLs and you should ask them on their site.

    You might be able to use a URL shortner to have your own domain redirect to the Dropbox URLs but again, that’s not a WordPress topic.

    @jdembowski
    This problem is related to WordPress because it has been used directly from Dropbox links in posts and I want to replace the main links of the site with dropbox

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Well then you’re in luck. You can post a million links in a WordPress site. Probably more.

    If you have a map of the old links and the new (assuming that’s what you meant) then you can do a search and replace in your site.

    https://wordpress.org/plugins/search/search+and+replace/

    500 times. That would awfully tedious and make sure you have a full backup of your whole site, database and files, before you attempt this.

    If you have a table and know how to do some scripting on the command line then wp-cli is a good choice.

    https://wp-cli.org/
    https://developer.wordpress.org/cli/commands/search-replace/

    Still tedious but doable. The backup cautioning still remains as a small typo can do horrible things to your site.

    @jdembowski
    Thank you
    The map of the previous links is as follows
    https://www.dropbox.com/s/zr32mnbqttxf7z/file1.rar

    Of course, for each file, the part after the /S/ is different

    The map of the new links is as follows
    https://mysite.com/download/file1.rar

    With these explanations, can replace the links with the Plugins you introduced?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Replace dropbox link with domain link’ is closed to new replies.