Hi,
I want to redirect pages e,g 'http://mydomain.com/pagename.html' to 'http://www.mydomain.com/pagename.html",i.e if anyone access without www then it will be added automatically,how can i do this using javascript?
plz help
Thanks
With most websites, the URLs with and without "www" in them will point to the same site. You cannot add www to the url shown in the address bar but as you say you can redirect to a different site. But that seems rather pointless - why have to different sites in the first place when you can configure the server to point to the same one?
With most websites, the URLs with and without "www" in them will point to the same site. You cannot add www to the url shown in the address bar but as you say you can redirect to a different site. But that seems rather pointless - why have to different sites in the first place when you can configure the server to point to the same one?
yes i have suggested this to my client,but he want me to do this without server control panel access,that's y i did it using javascript.