website: shorter php redirect example

This commit is contained in:
creme 2020-01-21 11:56:28 +01:00
parent c6f0806ee1
commit 33d2a3b86b
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 1 additions and 4 deletions

View File

@ -55,8 +55,5 @@ example `index.html`:
```
example `index.php`:
```php
<?php
header('Location: https://www.w3docs.com/', true, 302);
exit();
?>
<?php header('Location: https://www.w3docs.com/', true, 302); exit(); ?>
```