Title: Redirect Page PHP
Last modified: February 5, 2020

---

# Redirect Page PHP

 *  Resolved [MatrixMedia](https://wordpress.org/support/users/matrixmedia/)
 * (@matrixmedia)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirect-page-php/)
 * Hi, I have to do this redirect:
 * from (actual site with redirection)
    `https://mysite.com/folder1/folder2/page.
   php`
 * to extermal site
    `http://folder1.mysite.com/folder2/page.php`
 * I have tried with regex and without, but the result is always 404.
 * with regex
 *     ```
       ^/folder1/(.*)
       http://folder1.mysite.com/$1
       ```
   
 * I did some testing and the problem seems to be “page.php”
 * what is the problem? where am i wrong?
 * Tnx
    Regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirect-page-php/#post-12401950)
 * Please see [https://redirection.me/support/problems/url-not-redirecting/](https://redirection.me/support/problems/url-not-redirecting/)

Viewing 1 replies (of 1 total)

The topic ‘Redirect Page PHP’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/redirect-page-php/#post-12401950)
 * Status: resolved