Hi there my current code looks like this:
if (stripos($_SERVER['REQUEST_URI'],'cake') !== false)
{echo '<div class="clear"></div><a href="http://www.example.com/cakes/" class="btn"> >> View all Cakes</a>';}
This works well to check if the current URL contains the word 'cake' and Then display a link to all cakes.
What I need to add to this is:
If URL contains 'cake' but does not contain 'carrot' Then display a link to all cakes.
Any ideas on how I can modify?
Many Thanks