Title: adding string to redirected url
Last modified: December 5, 2020

---

# adding string to redirected url

 *  Resolved [fsjones](https://wordpress.org/support/users/fsjones/)
 * (@fsjones)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-string-to-redirected-url/)
 * This redirect plugin is fantastic and helping me create a feature for my site.
   One issue I’m having though is I need to change the page template of the pages
   that are redirected to. I’ve found a way to do this by using a PHP if statement
   that checks the URL for a string that is only included with redirect. The only
   problem is after the plugin redirects the user, the URL is changed to the URL
   they are on and not the redirect URL string. My question is whether it’s possible
   to inject a string to the end of URLS that are redirected using this plugin? 
   I hope that makes sense… it’s a little hard to explain.
 * Thank you
    -  This topic was modified 5 years, 6 months ago by [fsjones](https://wordpress.org/support/users/fsjones/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-string-to-redirected-url/#post-13753464)
 * For that purpose you could use one of the [tracking parameters](https://documentation.chattymango.com/documentation/redirect-url-to-post/getting-started-redirect-url-to-post/other-parameters/#tracking).
   They will appear in the final URL and you could use them to identify redirects.
   Something like: `...&utm_source=redirection`
 *  Thread Starter [fsjones](https://wordpress.org/support/users/fsjones/)
 * (@fsjones)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-string-to-redirected-url/#post-13772784)
 * Great. I will try that. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘adding string to redirected url’ is closed to new replies.

 * ![](https://ps.w.org/redirect-url-to-post/assets/icon-256x256.png?rev=1742449)
 * [Random Post Plugin - Redirect URL to Post](https://wordpress.org/plugins/redirect-url-to-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirect-url-to-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirect-url-to-post/)
 * [Active Topics](https://wordpress.org/support/plugin/redirect-url-to-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirect-url-to-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirect-url-to-post/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [fsjones](https://wordpress.org/support/users/fsjones/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/adding-string-to-redirected-url/#post-13772784)
 * Status: resolved