http-redirectdnsweebly

Redirect my sub.my-domain.com to discord


I've been looking for a method with DNS to redirect my domain's subdomain e.g http://server.my-domain.com to https://discordapp.com/invite/server


Solution

  • As i found the answer of this question, i'd love to share it with all of you,

    1. Create a CNAME on your domain named server: (or any other name you want)
    2. Target the CNAME to: discord.gg.opts-slash.INVITECODE.redirect.center but change the INVITECODE to your server invite code
    3. Save it and you are good to go!

    Please note that: If you want to use it for another method other than discord please remember:

    .opts-slash means / for example you have http://example.com/123, to redirect your http://example.my-domain.com/ to http://example.com/123 type in the CNAME example.com.opts-slash.123.redirect.center and your CNAME name to example.