Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Schalk Neethling www.volume4.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Forward a page using PHP

Often, forwarding web pages is done with .htaccess. But sometimes you don't want to mess with editing .htaccess (or you may not have access to it). You can do HTML forwarding, but PHP allows you to use a more transparent method (and you'd like to retain referrer information). Just edit the code below and add it to the page in question.

- Thank to Rollie Hawk

   1  
   2  <?php
   3    header("Location: http://domain.tld/page.php");
   4  ?>
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS