Created
May 25, 2013 08:57
-
-
Save aristath/5648439 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$current_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; | |
if ( $current_url == 'http://example.com/example' ) { | |
// DO YOUR THING HERE, THEN REDIRECT | |
wp_redirect( 'http://example.com' ) ); | |
exit; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment