941-685-8851

‘force index.html’

Force index.php with .htaccess

When performing a web design production, or a website design rework, there may be situations where both index.html and index.php are active in your root website directory. During a website transition, you may need to keep these files active until youv’e completed the web design production. Your webserver will default to one or the other, and it may not default to the one you want it to.

You can force the file you want with your .htaccess file.

For instance, to force index.html:

DirectoryIndex  index.html index.php

To force index.php:

DirectoryIndex  index.php index.html

That will make your web design transition a little bit easier.

Share