/    Sign up×
Community /Pin to ProfileBookmark

301 Redirect to new domain SEO

I have a site that is moving to a new domain. Other than that, the site is identical. I have read for SEO purposes that every single page needs redirected to the new page for the SEO to transfer properly.

I have hundreds of pages but the folders and file names are the same on the new site as on the original. The redirects seems to work properly by using a single line redirect. For the single line 301 shown below, every page redirects to the new corresponding replacement page on the new website. Theis work for all of the subfolders as well. It works perfectly for the web browser redirects. However, will this single line redirect work for the googlebot to transfer the SEO for each page individually?

RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]

Or do I need to redirect each page like so:

RewriteCond %{HTTP_HOST} ^oldsite.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.oldsite.com$
RewriteRule ^pageone.php$ “http://www.newsite.com/pageone.php” [R=301,L]

RewriteCond %{HTTP_HOST} ^oldsite.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.oldsite.com$
RewriteRule ^pagetwo.php$ “http://www.newsite.com/pagetwo.php” [R=301,L]

etc. for each page

Both of these methods redirect the same way for the user experience. I just don’t know how the search engine treats it. Is there a difference between these two methods as for what the search engine sees?

to post a comment
SEO

2 Comments(s)

Copy linkTweet thisAlerts:
@Divya_raiMar 18.2015 — According to me Both are same, that tells the same to robots that old url has been permanently moved to new page. So there is no difference in that, we can say that alternatives to one another
Copy linkTweet thisAlerts:
@Bruce_AthertonMar 25.2015 — Simple 301 Redirects provides an easy method of redirecting requests to another page on your site or elsewhere on the web.
×

Success!

Help @ddbell spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...