Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    This is something you will need to code yourself. You can use Redirection to create the redirects based on user input.

    Note that you will need to be very careful about sanitizing the data to prevent users from creating a redirect to another site

    Thread Starter weblicitysa

    (@weblicitysa)

    Thank you. Can you please assist me on the php code I would use to update a specific target URL if I have the source URL or name of the redirection.

    Plugin Author John Godley

    (@johnny5)

    You can create a redirect with Redirect::create, and update one with Redirect::update. The functions for both these are in wp-content/plugins/redirection/models/redirect.php. The data supplied to both is defined in Red_Item_Sanitize in the same file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘User input Redirect’ is closed to new replies.