Forum Moderators: coopster
But I do have access to PHP apparently with certain site packages (and found the code to use online). I signed up and got lots of great new files and have no clue what to do with them.
So, is there a really basic step-by-step tutorial for what to do with PHP? I just want to forward my html pages, and need a really basic instruction source that probably starts something like: make a new file and name it X.
You get the idea. I am clueless.
<meta http-equiv="Refresh" content="n;url">
n is the number of seconds to wait before loading the specified URL.
url is an absolute URL to be loaded.
<META HTTP-EQUIV="refresh" content="1;URL=http://www.domain.com/index.htm">
As far as PHP references, you might want to see if there is a PHP for Dummies out there... not to imply anything, but it could be helpful at first.
I think what you're looking for is
header("Location: http://www.example.com/");
header("HTTP/1.1 301 Moved Permanently");
Using meta refresh is frowned upon by search engines and the like. Plus they're annoying for users (it breaks the back button). You're right to stick to server-side redirects, that way you can send useful HTTP information along with the new URL.
If it really must be client side, you could always insert the link you want to redirect into the body of the page. That way when a visitor clicks "back" they won't be held in an endless loop while your page redirects them to another place... I hate it when that happens!