I want to redirect user to a specific page, when they are not on this page.
So something like (pseudo code):
if not (url = example.com/index.php)
redirect to example.com/index.php
/if
When a user e.g. visit page example.com/forum.php he will be redirected to example.com/index.php
(The jQuery file is loaded in every file)
How can I archive that?