Redirect to same domain

Started by Paxi, 01-26-2015, 17:45:53

Previous topic - Next topic

PaxiTopic starter

Hello everybody,

I am in the process of migrating one domain (new website ='A') to another (old website ='B').

The old website ('B') has been there since the 90's and needed a major update. For this reason a new website was set up in WordPress ('A') which has (for now) a random domain name, but will have the same domain name as the old website after the migration. The individual pages will have different URL though.

Since I don't want to lose the google ranking of the individual pages, I was wondering how I can redirect the old URLs to the new ones? 301 redirect?

I would appreciate any advice.

Thank you in advance!
Paxi
  •  


wellliving

#1
Yes, you can use 301 redirects to maintain the Google ranking of your individual pages when migrating from one domain to another. A 301 redirect is a permanent redirect which indicates to search engines that the page has been permanently moved to a new location.

To set up 301 redirects, you can use the redirection feature in the .htaccess file on your web server. This will allow you to redirect the old URLs to the corresponding new URLs.

For example, if the old website URL for a specific page is "http://www.oldwebsite.com/oldpage" and the new website URL for the same page is "http://www.newwebsite.com/newpage", you can use a 301 redirect to automatically send visitors and search engines from the old URL to the new one.

By implementing 301 redirects for all your old URLs to their respective new URLs, you can ensure that the Google ranking and traffic to your individual pages are maintained during the migration process.

In addition to using 301 redirects for individual pages, you may also want to consider creating a comprehensive redirect plan for all relevant pages on your old website. This can help ensure that users and search engines are seamlessly directed to the corresponding pages on your new website.

To avoid losing Google ranking, it's important to map out all the old URLs and their new equivalents on the new website. You can then implement these redirects using a combination of .htaccess file on the server and redirection plugins available in WordPress.

Furthermore, it's highly recommended to submit an updated XML sitemap to Google Search Console after the migration is complete. This will prompt Google to recrawl and reindex the new URLs, recognizing the changes and attributing the existing ranking signals to the new pages.

It's also a good practice to monitor the traffic, rankings, and indexing status of your migrated pages after the migration to address any unforeseen issues promptly.




<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^abc.com$ [OR]
  RewriteCond %{HTTP_HOST} ^http://www.abc.com$
  RewriteRule (.*)$ http://www.abc.com/blog$1 [P]
</IfModule>