Redirect guests on another page
Description
Redirect guests to a page
Thanks to LGforum

Set up
You have just to add this code to the page you want the guests won't be able to see...
- Code:
<script>
var guest = '{USERNAME*}';
if(guest == 'Guest') window.location = 'redirection url';
</script>
Customize the tutorial
Simply, change redirection url with the link of the page that guests will see

Technical problems
![]() | The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting. Thanks, the staff |
![]() | For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible... |
Friendly,
The team of the Forum of Codes.