api

Import multiple redirects from file

Hi sometimes we need quickly import a lot of redirects. We can just put file with redirects in format:

source/dummypage,redirect/destination-page

source/dummypage,redirect/destination-page

source/dummypage,redirect/destination-page

Then read line by line and create redirect if it is unique.

We can easilly do all this using code given below.

Tags: 
Subscribe to RSS - api