-
I integrated CI Shield into my app. Now I notice that the login and other requests use .php at the end, which I want to customize to hide them. (I am handling it via .htaccess file.) How do I achieve hiding .php for all requests generated by CI Shield? |
Beta Was this translation helpful? Give feedback.
Answered by
datamweb
Sep 7, 2023
Replies: 1 comment 6 replies
-
Hello, this issue is not directly related to Shield. Try through below. Otherwise, ask your question in the forum.
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The domain.com/index/login causes problems, because index is recognized as a controller and the login method. It is better to do the following to remove it altogether.
Try set as follows in app/Config/App.php:
https://github.com/codeigniter4/CodeIgniter4/blob/127ce6b7a0ff7e0d9050837c031fb417741f1eb3/app/Config/App.php#L44
Probably, if you raise the issue in the forum, they will be able to help