Website or blog writer is equipped with a number of links in a post. As always use these links to you is to go from being a special case. Website or blog owners will provide a plus in the blog or website using their own short URLs. Short URL There are a few sites that can be created. Located between Google and Bit.ly they know most of them. However, such services will be shortened URL which will be entirely yours. short URL to redirect to external resources required and can be created using JavaScript through Blogger, there is the opportunity to have their own special abbreviations.
Special Short URL How does it work?
You must use a script to use a short URL of your own. It is a simple routing as te adlandırabilir. Let's say that you want to use the URL www.facebook.com/facebookpagename/ url will www.sitename.net/go/fb if we replace it with our own short URL. This link will redirect to pages created directly facebook page. You can create an unlimited number of routing similar short URLs using JavaScript code.
Blogger Short URL with JavaScript How to Create It?
uygulayabiliris necessary files to create short URL for your blog or site infrastructure with a blogger by following the instructions below.
between Blogger> Template> Edit HTML codes that we face from section </ head> Paste the following code immediately upon finding the code.
<script language="javascript">
//<![CDATA[
var key = window.location.href.split("go/")[1].replace("/","")
var urls={
'fb':'https://www.facebook.com/Xtrealblog/',
'gplus':"https://plus.google.com/+kadiryamak/posts",
'twitter':"https://twitter.com/twitteradresi",
}
if(key){
if(urls[key]){
window.location.href=urls[key]
}else{
document.write("'"+key+"' not found :(");
}
}
//]]>
</script>
Among the above codes' fb ':' https://www.facebook.com/pagename/ 'we examine the code structure by fb' after the word fb from the address contains the address to be redirected to the website will target a while. That will be seen in the URL address to be redirected while https://www.facebook.com/pagename/ www.sitename.net/go/fb.
Kullarak month unlimited number of URL structure can be created between codes GooglePlus we just mentioned, we can replicate our special by adding a very short connection we want to address, such as Twitter. For example, we want to add our Twitter address field just below that address our Facebook 'twitter': "https://twitter.com/twitteradre of" we can add the code.
After completing all the procedures we record the changes we made Save Template saying. As a result of this process we provide for external connections such as Facebook, we can redirect by typing short URL on our website we have created for our own or blog.
0 yorum:
Post a Comment