Thursday, January 12, 2012

Javascript For Redirection

In Previous Post We' Have Posted a Technique For Redirecting using "Meta Tags" .In This Post We Would Like To Present An Another Way of Redirecting Using "java Script". 


Redirection Using JavaScripts is Pretty Simple And Effective. This Method of Redirection Is Also more Search Engine Friendly. 


Follow these Steps To Redirect to a New Blog Address.



1. Login to Your dashboard--> layout- -> Edit HTML.


2.Scroll Down or find <head> Tag.


3.Paste The Following Code With Your New Blog Address.

<script type='text/javascript'>
strLoc=window.location.href;
var newLoc = strLoc.replace("Old Blogger Domain","New Blog");
window.location.replace(newLoc);
</script>



For Ex: I Want To Redirect My Traffic From My Older Blog "www.atozlyrics.blogspot.com" To New Blog Address "www.fuckyeahlyrics.blogspot.com"


Code For This As Follows:


<script type='text/javascript'>
strLoc=window.location.href;
var newLoc = strLoc.replace("atozlyrics","fuckyeahlyrics");
window.location.replace(newLoc);
</script>


No comments:

Post a Comment