This shows you the differences between two versions of the page.
| — |
php_redirects [2016/11/25 22:38] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== PHP Redirects ===== | ||
| + | |||
| + | To create a redirect in PHP from one location to another create an index.php containing the following: | ||
| + | |||
| + | <? | ||
| + | header(" | ||
| + | ?> | ||
| + | |||
| + | Such as: | ||
| + | |||
| + | <? | ||
| + | header(" | ||
| + | ?> | ||
| + | |||
| + | or | ||
| + | |||
| + | <? | ||
| + | header(" | ||
| + | ?> | ||