html redirect

177 Comments

How to redirect page using PHP with values?

Here is the code for simple PHP page redirect. The search engine friendly way of redirecting is the 301 redirect. 1 2 3 4 <?php Header("HTTP/1.1 301 Moved Permanently"); header( ‘Location: http://www.yoursite.com/page.html’ ) ; ?> Note that if you do not include the first Header line above, the redirect still works. But, instead of a […]