Hi there,
Someone pointed out to me that my search form on one of my sites was exposing the index.php. My search results were being displayed as http://www.domainname.ca/index.php?s=crap&sbutt=Go
I was using this:
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
and switched to this:
<form id="searchform" method="get" action="<?php bloginfo('siteurl'); ?>">
and now my search results appear as http://www.domainname.ca/?s=crap&sbutt=Go which I'm told is much better. But I can't figure out why. Why is removing the index.php from the url important? Can anyone point me to a document or a link explaining this? I searched on Google, but can't find anything.