|
Hi Guys
Before a month I got a script for page redirection from somewhere in the forums.
var pAddy = self.location.href;
var pHost = self.location.hostname;
var pPath = self.location.pathname;
var nuLoc = 'http:/' + '/www.' + pHost + pPath;
if(pHost.indexOf('www.') == -1) self.location.replace(nuLoc);
save this file on server name it, suppose abc.js
Then call this .js page to home page of your website
<SCRIPT language="JavaScript" src="abc.js"> </SCRIPT>
It really works.
Now I would like to know, does it effect my website in one or other way. If anybody knows about this script and its cons please reply this post.
|