I want to make a force redirect for single.php to index so that it is never reachable by direct access (the site is built in a way that you retrieve all the content on the index page, still need to have this page available though because of an ajax function). I assume this is done in .htaccess?
Edit: I need to be able to access the single.php through an ajax request from the index page, i.e. the redirect should only occur upon direct url access.
