Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Website redirect from subdomain used by bit.ly

  • 16-01-2012 02:58AM
    #1
    Registered Users, Registered Users 2 Posts: 2,454 ✭✭✭


    Hi All.

    I have set-up a short URL, which I'd rather not disclose in the thread.
    Basically, the subdomain (the primary destination) is used for custom bit.ly URLs. The domain itself redirects to the main website, at the longer domain. What coding could I use to make the subdomain redirect also, without affecting the bit.ly set-up.

    For example:

    xx.xmpl.com - the short url address (eg. xx.xmpl.com/jkasd)
    xmpl.com - when main url is visited (not subdomain), it redirects to main site, eg.
    example.com - main website


    There's no information from bit.ly, but I am sure some Boardsies know how.

    FYI, the xx. is placed towards the bit.ly site using a CNAME.
    The xmpl.com is redirected via standard forwarding.
    I'm using a *nix based server: Redhat as far as I know.

    I hope someone could shed a light on how to deal with this.
    Thanks all.



    (xmpl.com/example.com used for example. A real world example could be how http://jrnl.ie/ redirects to http://thejournal.ie. Only, I would have http://xx.jrnl.ie/)


Advertisement