Some website has been automatically redirected to that home page while entering the domain name without WWW format.For example if i entering the website name amazon.com means,then it has automatically redirected to [url]www.amazon.com.I[/url] want to know about the tricks regarding that URL redirection.
@junkpopatJun 17.2014 — #You have to use .htaccess for redirection.
First make a text file abc.txt and write your redirection rules in it and save it, after that upload that file into your web hosting directory where your main index.html file exists, then rename file name from abc.txt to .htaccess (no file name but only extension htaccess). Thats all, nothing more required.
Remember that google search engine considers www.domain.com as one website and domain.com as another website so your search rank will be divided accordingly if you use both types of urls. To keep better search rank, use only one url and redirect other via .htaccess.
Hope this helps.
Some website has been automatically redirected to that home page while entering the domain name without WWW format.For example if i entering the website name amazon.com means,then it has automatically redirected to www.amazon.com.I want to know about the tricks regarding that URL redirection.[/QUOTE]
@nada_book14Jun 17.2014 — #Just all the websites which are using these type of redirection is using the method of 301 redirection and some of another for best use.