I am trying to check with PHP if the user is on some specific pages. Currently I am doing it like this:
<?php if($_SERVER['REQUEST_URI'] == "/forum/"){echo "class='active'";} ?>
Although, this only works if the URL is http://example.com/forum/
How can I make the above code works, on both /forum/ but also on /forum/??
Example:
http://example.com/forum/anotherpage