How to do 301 (Permanent Redirection) in PHP

It is really simple.
Just put the following 2 lines at the top of the page you are trying to redirect.
header(“HTTP/1.1 301 Moved Permanently”);
header (‘location: <<your landing page>>”);
Replace <<your landing page>> with the URL of the landing page.
Remember, you need these 2 lines before any output statement is made on your script, else you will get [...]

Google Sitemap Script (php) for Static Websites

Just completed a Google sitemap script in PHP. I had been long searching for a script for static sites but found none suitable. Most scripts are incomplete and wont run on my server. Plus i did not want to spend money after a simple thing such as a sitemap. So i wrote my own script [...]