• 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

#1
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.

Thanks
 

Andrej

Well-known member
#4
So a long url would eat up the character limit?
I think the answer to this question is very obvious. Imagine linking to a page with a long URL
Code:
https://maps.google.com/maps?q=Russia&hl=no&sll=37.42214,-122.08398&sspn=0.009782,0.019205&t=h&hnear=Russland&z=3
 
#5
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....

I think the answer to this question is very obvious. Imagine linking to a page with a long URL
Code:
https://maps.google.com/maps?q=Russia&hl=no&sll=37.42214,-122.08398&sspn=0.009782,0.019205&t=h&hnear=Russland&z=3
 

Andrej

Well-known member
#6
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....
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.
 

ShadyX

Well-known member
#8
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
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...

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 :(
 

Pierce

Well-known member
#11
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:

Code:
        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/;

        }
xf.com

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:

Code:
xf.com/49608
to access the 3rd page
Code:
xf.com/49608/3
to link directly to a post it is:
Code:
xf.com/p/12345
to access the home page it is:

Code:
xf.com
You can modify your permalink template and elsewhere.

Example of my short url:
Code:
https://mms.fit/353661
And the original

Code:
https://www.minimins.com/threads/posting.353661/#post-7882857
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.