Zaloguj | Zarejestruj | FAQ

Problem with Redirect to anther page or web site

+ Odpowiedz

Posty: 2 Strona 1 z 1

Problem with Redirect to anther page or web site

przez annyphp » Pn maja 23, 2011 10:02 am

Tutorial on PHP redirect to be redirected to anther page or web site.
For this tutorial lets suppose you have moved your web site to another domain and want your visitors to be redirected to your new domain you can use PHP for this purpose.
Here is the code to redirect a user:
header ('Location: '');
Here's a breakdown of the code.
The<?php tells the browser to expect to receive php.
header('Location:''); tells the browser to redirect to the address given in the code and ?> tells the browser to finishi expecting PHP.
More free php redirection scripts you can check out the page!
Avatar użytkownika


  • Posty: 5
  • Dołączył(a): Cz gru 02, 2010 12:39 am

Re: Problem with Redirect to anther page or web site

przez » Pn maja 23, 2011 11:11 am

Thanks for the tutorial and link. But please respect in future that the forums are for questions and discussions regarding web development - not for promotion of websites.

But you are of couse welcome to answer questions / participates in disussion in the forums and then add a signature to you profile with a link to your website.

- Andreas,
Avatar użytkownika
Site Admin

  • Posty: 1194
  • Dołączył(a): So wrz 11, 2010 11:24 am
Show some love for on Twitter, Facebook and Google: Use the buttons on top of all pages.

+ Odpowiedz

Strona 1 z 1