User Guide of Magento 2 Import Export URL Rewrites Extension
General Configurations
At the back end, go to SYSTEM > Export URL Rewrites. Here you can find the grid of all your export URL rewrites profiles. Click on the Add New Profile or Edit button to continue. You can also click on the Generate button to export the previously saved profiles.
Provide the following information.
- Entity Type: It is the default type of the module i.e. URL Rewrites
- File Format: Admin can export only CSV files (Comma Separated Values)
- File Name: Enter a name for the exported file without writing the extension/type of the file as this extension saves the file only in CSV format
Note: Please don’t use "_" in the file name i.e. urlrewrites_information
- File URL: Enter the directory path here where you want to save your export file i.e. pub/media e.g. "/urlrewritesimportexport/" or "/" for the base path (path must be writeable)
- Export By: You have the option to export the file with custom attributes:
- Select ‘All’ to export all the data/attributes
- If you select ‘Entity Type’, another field will appear at your screen:
- Choose Entity Type: Here you have the following options. Choose any one of them to export the data according to your selected type of entity:
- If you select ‘Store View’, another field will appear at your screen:
- Store View: Here you have the following options. Choose any one of them to export the data according to your selected store view:
- If you select ‘Redirect Type’, another field will appear at your screen:
- Choose Redirect Type: Here you have the following options. Choose any one of them to export the data:
How to Add Import URL Rewrites Profile?
At the back end, go to SYSTEM > Import URL Rewrites. Here you can find the grid of all your import URL rewrites profiles. Click on the New Import Profile or Edit button to continue.
Provide the following information.
-
Entity Type: It is the default type of the module i.e. URL Rewrites
-
File Format: Admin can import only CSV files (Comma Separated Values)
-
Import Mode: Specify the import mode:
- Add/Merge Existing Data (If you want to update the existing database)
- Add/Replace Existing Data (It matches the request path, if it already exists in the database then it will delete the previous entry and replace it with the new one)
- Delete (If the defined URL Rewrites in the file already exists in the database, it will delete all of them from the database)
-
Show Progress Message: Select ‘Yes’ or ‘No’ to Show/Hide the progress message while importing the file. It shows Success and Failed URL Rewrites during the import process. Moreover, this module will also generate an error log file at the following path: /var/log/
- Attachment: Upload the file
You can also upload any custom image for your URL rewrite CSV file. Just go to the following path and paste a PNG image with the same name as written below. CSV => pub/media/urlrewritesimport/default/icon-csv.png