I have just put a website live, but I need to restrict access to everything except the homepage for users outside of my IP address.
I would like to do this using .htaccess.
So far I have come up with this but it doesn't work:
Order Deny,Allow Deny from all Allow from 127.0.0.1 <Files /index.php> Order Allow,Deny Allow from all </Files>
The file that I want to make viewable to the world is located here:
The .htacess file is located here:
Wordpress re-writes everything to /index.php which complicates matters.