ROUTE scheme . htaccess

Asked

Viewed 239 times

0

I have the following URL:

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

and I wish to have access to the index of this page:

http://localhost/devops/json/

I wish the display of index.php be hidden

1 answer

1


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

Below follows the code!

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.