Script for page redirect
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
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.
Re: Script for page redirect
First of all I would like to make a note that you have posted this in the wrong forum and I have moved it to the correct forum.
Also if you are looking for a redirect then I would suggest go for permanent redirect as that helps in gaining Page Rank as well as backlinks to a page.
|All times are GMT +5.5. The time now is 05:07.|