logo

BlogSpot Permalink WordPress Ki Tarah Kaise Banaye

Bahut dino ke baad aaj me Blogger se related ek tutorial laya hu jis me BlogSpot permalink ko WordPress permalink format jaisa change kiya ja sakta hai. Is post me hum ek javascripts code ki madad se blogger post links ko wordpress post link ki tarah badal sakte hai.

blogger permalink like wp

Blogger aur WordPress ke posts aur pages ki permalinks different hoti hai jaise blogger permalink me date automatically add ho jata hai aur wordpress permalink me bahut sare option available hote hai jaise ki wordpress me date ko hataya bhi ja sakta hai. Main aapko wordpress aur blogspot permalink ka structure dikha deta hu.

Blogger permalink:
http://www.example.com/2018/08/post-link.html

WP permalink:
http://www.example.com/post-link.html OR http://www.example.com/post-link/

Jo text Blue color me hai usko permalink kehte hai aur blue color se pehle ke text ko homepage kehte hai.


Blogger Permalink WordPress Ki Tarah Kaise Banaye

Jab koi visitor humare blog par land karta hai to woh permalink dekh kar hi ye jaan jata hai ki ye blog blogger par host hai ya wordpress par. But ek JavaScript code ki help se aap apne permalink structure ko wordpress jaisa bana sakte hai. Posts read karne se pehle main aapko permalink ke bare me important points batane ja raha hu taki aap permalink ko achi tarah understand kar sake.


Permalink Kya Hota Hai?

Permalink humare posts aur pages ka URL structure hota hai jis me do links ka combination hota hai jaise homepage aur post page. Jo URL structure homepage ke baad hota hai usko permalink kehte hai aur permalink ko badi aasani ke sath customize kiya ja sakta hai. Homepage ko customize nahi kiya ja sakta hai jab tak pura domain ko hi change na kiya jaye.


Blogger Permalink and SEO

Agar hum default permalink ki baat kare to default permalink ko posts title ke according customize karne se url ka structure SEO friendly banaya ja sakta hai But JavaScript se permalink ko customize karne se SEO par bura asar bhi pad sakta hai. Maine iska upyog apne blog par aaj tak nahi kiya hai. So, isko use karne ke baad hi better predictions kar sakte hai.


Blogger Permalink Ko WP Permalink Banane Ka Tarika

Blogger ke har ek post aur page ka ek unique ID hota hai aur ye JavaScript us unique ID ko override karke customized permalink par redirect karta hai jis se blog permalink format WP jaisa dikhta hai.


Step 1: Anpe blogger dashboard me login karke theme par click kare aur phir Edit HTML par click kare.


Step 2: Iske baad apne theme editor me <head> ya phir &lt;head&gt; tag search kare. Aap <head> OR &lt;head&gt; ke badle </body> OR &lt;!--</body>--&gt;&lt;/body&gt; ke upar bhi special javascript add kar sakte hai.


Read Also:


Step 3: Dono me se koi bhi code search karne ke baad, uske upar ye code paste karke Save par click kare.

<script type='text/javascript'>
//<![CDATA[
// BloggerJS v0.3.1
// Copyright (c) 2017-2018 Kenny Cruz
// Licensed under the MIT License
var urlTotal,nextPageToken,postsDatePrefix=!1,accessOnly=!1,useApiV3=!1,apiKey="",blogId="",postsOrPages=["pages","posts"],jsonIndex=1,secondRequest=!0,feedPriority=0,amp="&amp;"[0];function urlVal(){var e=window.location.pathname,t=e.length;return".html"===e.substring(t-5)?0:t>1?1:2}function urlMod(){var e=window.location.pathname;"p"===e.substring(1,2)?(e=(e=e.substring(e.indexOf("/",1)+1)).substr(0,e.indexOf(".html")),history.replaceState(null,null,"../"+e)):(e=(e=postsDatePrefix?e.substring(1):e.substring(e.indexOf("/",7)+1)).substr(0,e.indexOf(".html")),history.replaceState(null,null,"../../"+e))}function urlSearch(e,t){var n=e+".html";t.forEach(function(e){-1!==e.search(n)&&(window.location=e)})}function urlManager(){var e=urlVal();0===e?accessOnly||urlMod():1===e?getJSON(postsOrPages[feedPriority],1):2===e&&(accessOnly||history.replaceState(null,null,"/"))}function getJSON(e,t){var n=document.createElement("script");if(useApiV3){var o="https://www.googleapis.com/blogger/v3/blogs/"+blogId+"/"+e+"?key="+apiKey+"#maxResults=500#fields=nextPageToken%2Citems(url)#callback=bloggerJSON";nextPageToken&&(o+="#pageToken="+nextPageToken),nextPageToken=void 0}else o=window.location.protocol+"//"+window.location.hostname+"/feeds/"+e+"/default?start-index="+t+"#max-results=150#orderby=published#alt=json-in-script#callback=bloggerJSON";o=o.replace(/#/g,amp),n.type="text/javascript",n.src=o,document.getElementsByTagName("head")[0].appendChild(n)}function bloggerJSON(e){var t=[];if(useApiV3||void 0===urlTotal&&(urlTotal=parseInt(e.feed.openSearch$totalResults.$t)),useApiV3){try{e.items.forEach(function(e,n){t.push(e.url)})}catch(e){}nextPageToken=e.nextPageToken}else try{e.feed.entry.forEach(function(n,o){var r=e.feed.entry[o];r.link.forEach(function(e,n){"alternate"===r.link[n].rel&&t.push(r.link[n].href)})})}catch(e){}urlSearch(window.location.pathname,t),urlTotal>150?(jsonIndex+=150,urlTotal-=150,getJSON(postsOrPages[feedPriority],jsonIndex)):nextPageToken?getJSON(postsOrPages[feedPriority]):secondRequest&&(nextPageToken=void 0,urlTotal=void 0,jsonIndex=1,secondRequest=!1,0===feedPriority?(feedPriority=1,getJSON("posts",1)):1===feedPriority&&(feedPriority=0,getJSON("pages",1)))}function bloggerJS(e){e&&(feedPriority=e),urlManager()}bloggerJS();
//]]>
</script>

Step 4: Code add karne ke baad, apne kisi bhi post par click kare aur address bar me permalink structure ko notice kare. Aapko waha wp jaisa post link milega.


Dosto, ye code V3rluchie ne develop kiya hai jo mujhe Github par mila. Aap is code ko apne risk par add kare kyun ki is code ko add karne ke baad agar SEO me koi critical issue hua to iski responsibility bhi aapki hi hogi.


Ye tha aaj ka topic jisme maine blogger permalink ko wp jaisa customize karne ka ek aasan tarika share kiya. I hope ki aapko ye post pasand aaya hoga.


We're Listening:

Have any questions, concerns or feedback about this article? Share it with us on Facebook, Twitter, Instagram, or our LinkedIn Group.
Subcribe to Our Tech Updates

and Share on