How to redirect requests to my URL to somefile.php not index.php

Amna Ahmed asked:

How can i redirect all the requests that are made to to and then rewrite as

My answer:

Use the Apache DirectoryIndex directive to specify which file or files should be treated as the directory index.


DirectoryIndex index_main.php

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.