Title: Redirection able to replace php redirect?
Last modified: November 28, 2019

---

# Redirection able to replace php redirect?

 *  Resolved [tedstriker](https://wordpress.org/support/users/tedstriker/)
 * (@tedstriker)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/redirection-able-to-replace-php-redirect/)
 * Dear John,
    I tried to figure it out by myself but I failed.
 * By now I am using a php redirect which throws you from
    [https://mydomain.xyz/wb.php?wb=PARAMETER](https://mydomain.xyz/wb.php?wb=PARAMETER)
   to [https://targetdomain.xyz/subfolder/subfolder/PARAMETER](https://targetdomain.xyz/subfolder/subfolder/PARAMETER)
 * > Is it possible to do that in Redirection, replacing the php file but keeping
   the exact existing “wb.php?wb=” structure?
 * All the best,
    Seb
    -  This topic was modified 6 years, 6 months ago by [tedstriker](https://wordpress.org/support/users/tedstriker/).

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/redirection-able-to-replace-php-redirect/#post-12184417)
 * Sure, you can redirect any URL on your site. For some you may run into problems
   described here:
 * [https://redirection.me/support/problems/url-not-redirecting/](https://redirection.me/support/problems/url-not-redirecting/)
 *  Thread Starter [tedstriker](https://wordpress.org/support/users/tedstriker/)
 * (@tedstriker)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/redirection-able-to-replace-php-redirect/#post-12184467)
 * Thanks – but I’m not capable handling regular expressions. Which means I have
   to give up – excepting somebody might be able to give me a concrete hint solving
   my very usecase described above.
 * :edit: I’m running Redirection successfully with hundreds of URL-to-URL-redirects
   working fine. It’s only this parameter-including special redirect I find a hard
   nut to crack.
 * Thanks a lot,
    Seb
    -  This reply was modified 6 years, 6 months ago by [tedstriker](https://wordpress.org/support/users/tedstriker/).
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/redirection-able-to-replace-php-redirect/#post-12185921)
 * Untested but this should work:
 * `^/wb\.php\?wb=(.*?)` => `/thing/$1`
    -  This reply was modified 6 years, 6 months ago by [John Godley](https://wordpress.org/support/users/johnny5/).
 *  Thread Starter [tedstriker](https://wordpress.org/support/users/tedstriker/)
 * (@tedstriker)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/redirection-able-to-replace-php-redirect/#post-12185982)
 * Yikes, that’s it!
 * Thank you very much!
 * Which is the right mail address to tip you via PayPal?
 * Best,
    Seb
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/redirection-able-to-replace-php-redirect/#post-12191608)
 * [@tedstriker](https://wordpress.org/support/users/tedstriker/) look on the options
   page inside the plugin, thanks!

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

The topic ‘Redirection able to replace php redirect?’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/redirection-able-to-replace-php-redirect/#post-12191608)
 * Status: resolved