Overclock.net banner

php redirect link

1214 Views 5 Replies 4 Participants Last post by  error10
Edi:t got it
  • Rep+
Reactions: 1
1 - 6 of 6 Posts
I see you got it. This is the best way to do it below as some browsers block html redirection and javascript redirection

Code:

Code:
<?php
header('Location: http://www.example.com/');
echo '[URL=http://www.example.com/]Click here if you are not automatically redirected.[/URL]';
?>
Quote:


Originally Posted by Ectrian
View Post

I see you got it. This is the best way to do it below as some browsers block html redirection and javascript redirection

Code:
Code:
<?php
header('Location: http://www.example.com/');
echo '[URL=http://www.example.com/]Click here if you are not automatically redirected.[/URL]';
?>
You'll never see that message because you already redirected.
See less See more
I know no one should see it. But some people have add ons to their browsers that stop automatic redirections.
Quote:


Originally Posted by Ectrian
View Post

I know no one should see it. But some people have add ons to their browsers that stop automatic redirections.

Wouldn't matter, because it's server-side.
See less See more
Quote:

Originally Posted by timw4mail View Post
Wouldn't matter, because it's server-side.
Yes it matters. The browser is told (using 301/302) where to go.
See less See more
1 - 6 of 6 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top