All Collections
Useful Tools and Tips
WPO: Importing Redirects from TXT file
WPO: Importing Redirects from TXT file
Gibu George Philip avatar
Written by Gibu George Philip
Updated over a week ago

To import redirect rules from a TXT file use the following format to create the TXT file(one per line):

/oldurl/?$,https://domain.com/newurl/,301
/oldurl2/?$,https://domain.com/newurl/,301

by adding /?$ to the end of /oldpage it ensures that the page will redirect regardless if the URL is entered into the browser with or without the trailing slash.

Did this answer your question?