1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add-on Short URL addon

Discussion in 'Resource and Add-on Discussions' started by usAdultAds, May 1, 2013.

  1. usAdultAds

    usAdultAds Active Member

    I have noticed on twitter, and other sites when a link is posted, then the link is automaticly shortened, and I think i may have seen this on another site or two also...

    So lets say that I am posting my link in this thread:

    Look at my spammy link:
    ie: domain.com/url-so-long-that-i-just-can-not-take-it-anymore/

    then the addon that is on the forum or site would auto convert the link:
    ie: domain.com/shorturlcode/

    1: why does twitter use the short url method?
    2: does it provide any benefit to the site with google?
    3: any other benefit other then just a short url?

    Now you guys have an idea to create a short-url addon for XF if not already.

  2. Andrej

    Andrej Well-Known Member

  3. usAdultAds

    usAdultAds Active Member

  4. Andrej

    Andrej Well-Known Member

    I think the answer to this question is very obvious. Imagine linking to a page with a long URL
  5. usAdultAds

    usAdultAds Active Member

    It is obvious for short url reasons, but is there any SE benefits other then (just being short)
    We all know that google does not like affiliate links, spam links, and so on...we all know that
    google does not like sites using "dofollow" links...so is there any seo benefit for using short url
    other then the "obvious" of just being short....

  6. Andrej

    Andrej Well-Known Member

    I don't believe that there any SEO benefits in having a shorted URL like http://bit.ly/a34yvnsa for instance.

    How could I know what is behind this redirect URL? Remember that it is a simple redirect.

    Check out this reply as well.
    usAdultAds likes this.
  7. usAdultAds

    usAdultAds Active Member

    Ok thanks

  8. ShadyX

    ShadyX Well-Known Member

    I already have this addon, it was coded for me by mr.goodie2shoes as a custom project.

    Some of the stuff is hardcoded though, so I can't release it :(
  9. usAdultAds

    usAdultAds Active Member

    thats ok...if it does not offer any extra seo benefit to the site, then no worries...
    however it maybe offer extra member benefit for upgrade accounts so they
    do not have to use third party shorten services to use on the site...

  10. Osukaru

    Osukaru Member

    I strongly believe this addon needed. It easier for us to share the link to our member in chat
  11. Pierce

    Pierce Well-Known Member

    You can do this really easily.

    Assuming you have the ability to modify your web server (im using nginx) and you are using custom friendly url for example:

            server {
                    listen 80;
                    server_name xf.com;
                    rewrite ^/$ https://xenforo.com;
                    rewrite ^/p/(.*)$ https://xenforo.com/posts/$1/;
                    rewrite ^/(.*)/(.*)$ https://xenforo.com/threads/gogogo.$1/pag$
                    rewrite ^/(.*)$ https://xenforo.com/threads/gogogo.$1/;

    is a separate domain. Whatever might seem appropriate. In this case xenforo.com and I have assumed ownership of xf.com

    that means to access this thread the url would be:

    to access the 3rd page
    to link directly to a post it is:
    to access the home page it is:

    You can modify your permalink template and elsewhere.

    Example of my short url:
    And the original

    I hope this helps.

    I know you can do a bitly type extension but this method does not require any database or files it hits nginx and is redirected instantly.
    CabCon likes this.

Share This Page