Mobile app version of vmapp.org
Login or Join
Martha676

: Improving .htaccess 301 redirect for keeping SEO values on large WordPress blog I have a client with a self hosted WordPress blog with 5000+ posts dating back several years that I'm creating

@Martha676

Posted in: #301Redirect #Htaccess #Seo #Wordpress

I have a client with a self hosted WordPress blog with 5000+ posts dating back several years that I'm creating a new template for. When the site is done, it will be moved to a new domain and the old domain needs to point to everything matching on the new domain with a 301 redirect.

Since the new WP-blog will have the same content and link structure/permalinks, images etc, I have prepared a .htaccess file to put on the old domain's server with a rewrite condition which simply will rewrite the domain and then makes an exception for a couple of pages that will have changed URLs after the move.

However, my client has talked with a SEO-export which according to the client says there's a better way of doing this by identifying the posts getting most traffic in the Google search results and handle them individually in some way(?). I think my client sent the SEO expert my .htaccess code but I'm not sure if it was communicated correctly about the site keeping the same structure as before or not.

My .htaccess code (added blank space after to not be auto links here):

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !=/oldpage1
RewriteCond %{REQUEST_URI} !=/oldpage2
Redirect 301 /oldpage1 newdomain.com/newpage1 Redirect 301 /oldpage2 newdomain.com/newpage2 ErrorDocument 404 /customers/e/7/9/newdomain.com//httpd.www/404
RewriteRule (.*) newdomain.com [R=301,L]


Have I missed anything? Could it be that handling some selected good ranking posts individually will keep the SEO values slightly better than just having all of them in "bulk" with the RewriteRule? Such as: Redirect 301 /oldtoprankingpage newdomain.com/newtoprankingpage ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gretchen104

If you are only changing of domain name while keeping the rest of the URLs identical, then handling redirects for some special pages separately will not provide any SEO benefits. Bulk is fine.

If the URLs change on top of changing of domain name, you must make sure the redirects are correctly implemented for each page and that might mean using special cases if necessary. You would lose SEO benefit if you did not redirect such pages properly.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme