Redirecting a Web Page
If you want to send your visitor to another web page without the user clicking on a link, there’s an easy way to do with a very small php script.
Of course, your server will need to allow you to use php code. If you are a Promised Land Services customer, then your website has php access by default.
Let’s say that I have a page on my Sonrises site that I want to redirect my visitors to my Promised Land Services site.
The page on my Sonrises site is named pls.php - so the URL would be http://sonrises.com/pls.php
The .php is necessary on the end instead of .html.
This doesn’t mean you can’t use HTML code inside the page, you can have both HTML code and php code in the same web page. The server will first translate the php code and then send the resulting HTML code to your browser. In other words, php code dynamically creates HTML code to be sent to the browser.
In this case, the php code redirects the user to my Promised Land web site. The only php code needed for this is:
The at the end tells the preprocessor that the php code is finished. The code in between will transfer the browser to http://promised-land-services.com.
It’s THAT easy!