Why does the control always redirects to index.php in php? -


seems silly but I have a simple doubt that I have a file structure

  - - & gt; Client-login --- & gt; Index.fp --- & gt; Default.php   

But whenever I try to run client-login from the browser, it always ends up reaching index.php? What is the reason? Can anyone answer me?

Because index.php is set to the directory in most Default index page (if not all) Apache installation If you want to show up to default.php , you can add the following snippet to the .htaccess file in that directory:

  DirectoryIndex default.php index.php   

DirectoryIndex Directive is set to set up a list of resources or files, when the customer directory Name a / guided at the end of a directory name in the end. It will provide the first source in the provided list (i.e. present).

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -