I was using the following code on my site like so
<% if(@cgi.path_info == '/' || @cgi.path_info == '/index') %>
<!--
<% end %>
ANYTHING HERE WHICH SHOULDN'T BE ON THE MAIN PAGE BUT ON ALL OTHER PAGES
<% if(@cgi.path_info == '/' || @cgi.path_info == '/index') %>
-->
<% end %>
This was included in my sites header which allowed me to hide certain code on the homepage of my site but show it on the rest.
Problem is since upgrading Apache to version 2.4 this no longer works.
Can anyone suggest an alternative way of doing this or provide me with an alternative code? best solution would be to use if statement but could do with some help/examples.