Forum Moderators: phranque
I am using a 301 redirect because my UK site is now a .com site. Rather than create a 301 redirect for each page, I used the following line:
Redirect 301 / [widget.com...]
This works and redirects all the HTML pages in the direcotry to my new domain. However, is this the right way to do it (from a SE perspective)? Or should I write a line for each page? I have approx 50 pages.
Regards,
Tim
> Or should I write a line for each page? I have approx 50 pages.
Unless you have some pages that you *do not* wish to redirect, or you do wish to redirect some pages on one domain to *different* pages on another, using the code you posted or writing a separate line for each page/file will be entirely equivalent.
Search engines have no way to "know" how you are redirecting, and they really don't have any reason to care.
If you want to redirect all resources on the old domain to the same resources on the new domain, then doing it with just that one line is fine.
Jim