Read this great reference for creating a csv for import but this was for Magento 1
and it states you only need store_id, id_path,request_path, target_path, options but these headers won't work for Magento 2.
In Magento 2 it looks like the entity_id is required and this would be painful indeed. Does anyone know what fields I need to import to get a massive amount of 301 rewrites into url_rewrites or a table that has paths and entity_id in it so I can cross reference?
Thank you.
Best Answer
If you can load your CSV file content then This is the way to import Bulk URL Rewrite:
Add below Code into script than run it.