Looking through the Console, I recently noticed that a menu I created to use via Ajax is showing up in Google results. Which is VERY weird and unexpected!
The Ajax query looks like this:
<script>
$('#foo').ajax('/path/to/example.php');
</script>
Can you guys suggest a way, in either Javascript, PHP, or through the htaccess, to redirect the Ajax script to the homepage if it's called from outside of the Ajax query?
Since I use several scripts like this, an htaccess solution would probably be best, but I'm open to anything.