Routing Schema .htaccess

0

I have the following URL:

http://localhost/devops/json/index.php

And I want you to have access to the index of this page:

http://localhost/devops/json/

I want the index.php display to be hidden

    
asked by anonymous 09.02.2018 / 12:20

1 answer

2

All redirect modifications and url extensions are changed in the .htaccess file!

Below is the code!

RewriteEngineOn
RewriteCond%{REQUEST_FILENAME}!-f
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule^(.*)$/index.php?/$1[L]
    
09.02.2018 / 14:28