Redirect 301 with sitemap

0

I have a problem, I'm going to do a migration of a system, and some URLs will change, and I want to create a Redirect 301, to keep the search engine data like Google and Bing.

I have an idea, is there a way I can create a sitemap with 301 redirects?

Why do I want to use sitemap? Because I need to do this dynamically, from a database with the old url and the new url, and in this case redirection with .htaccess would not. My application is a PHP site, so I'll create the sitemap content with a php script.

Is there a way to do this with the sitemap, or is there a better approach?

    
asked by anonymous 23.05.2018 / 13:51

0 answers