Hello, I was wonder if it is possible to change the DirectoryIndex based on the incoming IP address.
Heres a senerio.
We are working on a new site for our company and are doing redirection to pass users to a temp site in a sub folder.
but for us internally, we can goto /index.php and see the new site.
The issue is, is the new site has SEO friendly URLs and wont work if we actually have index.php in the URL, it needs to be just the domain name
so we want to have something like this
if (%{REMOTE_HOST} 71\.211\.XX\.XX)
{
DirectoryIndex index.php
}
else
{
DirectoryIndex default.html
}
Thanks