Title: engasm89's Replies | WordPress.org

---

# engasm89

  [  ](https://wordpress.org/support/users/engasm89/)

 *   [Profile](https://wordpress.org/support/users/engasm89/)
 *   [Topics Started](https://wordpress.org/support/users/engasm89/topics/)
 *   [Replies Created](https://wordpress.org/support/users/engasm89/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/engasm89/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/engasm89/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/engasm89/engagements/)
 *   [Favorites](https://wordpress.org/support/users/engasm89/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with WP external redirect links](https://wordpress.org/support/topic/problem-with-wp-external-redirect-links/)
 *  Thread Starter [engasm89](https://wordpress.org/support/users/engasm89/)
 * (@engasm89)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-wp-external-redirect-links/#post-5572837)
 * Thanks for your help
    the problem is that I don’t have much experience in PHP
   so here is the code that I use to get the external link from the webpage link
   and redirect it.
 * $url1=$_GET[‘url’];
    $url2=str_replace(” “,””,$url1);
 * if(preg_match(‘~http://~’,$url2)) {
    $url3=str_replace(“[http://&#8221](http://&#8221);,””,
   $url2); } elseif(preg_match(‘~https://~’,$url2)){ $url3=str_replace(“[https://&#8221](https://&#8221);,””,
   $url2); }
 * header(‘Refresh: 3; URL=http://malksh7ega.newtechgeeks.com/page2-2/?url=http://’.
   $url3);
    ?>
 * I don’t know where the problem is !!
    if anyone can help me I would appreciate
   that.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with WP external redirect links](https://wordpress.org/support/topic/problem-with-wp-external-redirect-links/)
 *  Thread Starter [engasm89](https://wordpress.org/support/users/engasm89/)
 * (@engasm89)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/problem-with-wp-external-redirect-links/#post-5572698)
 * The page with a header, footer, and left sidebar but no content.
    it actually
   has an iframe in which the external link will be opened if it supports iframe,
   if nothing shows you can click on the link at the top of this page that says 
   click here and you will be redirected to you destination, my problem is that 
   the first link which should behave the same as the second following the same 
   pages sequence doesn’t instead it shows the unacceptable page.

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