Can I get a little help on this code snippet?
-
I am trying to get a message displayed after being 301 redirected from an old site. I was given this PHP snippet to use along with adding “?redirect=true” to the redirect in .htaccess.
However the following code is returning a Parse error, and I’m not savvy enough to troubleshoot it. I am smart enough to put <?php and ?> before and after the code though.
Little help? Thannks!
if(isset($_GET['redirect')){ if($_GET['redirect'] == 'true'){ ?><div class='redirected'>You were redirected!</div><? } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can I get a little help on this code snippet?’ is closed to new replies.