Search code examples
djangohttp-redirectmailchimpmezzanine

Sent out broken link in a Mailchimp campaign - how to do a bulk redirect?


Just joined but have been a lurker for a while and found this community very helpful.

I've just sent out an email newsletter via Mailchimp to our 15,000 subscribers and included the wrong link (it should have been .../grandchallenges not .../grand-challenges. I've done a simple redirect on our website, but Mailchimp inserts individual URLs, so folks end up with a link that looks like this: .../grand-challenges/?mc_cid=debb7846d7&mc_eid=18de3e5c2a. As such i'd have to do 15,000 individual redirect requests, unless there's a way to 'bulk' redirect everything after the slash.

Btw - we're using Mezzanine as a Django CMS not Wordpress: http://mezzanine.jupo.org, so the answer won't be a WP plug-in.

Thanks!


Solution

  • use .htaccess

    RewriteEngine On
    RewriteRule ^grand-challenges\/(.*)$   http://example.com/grandchallenges/$1
    

    you can check it here: htacces Tester