i want to be able to hide php extension in url so that if i got to login it will work the same way as if i was going to login.php
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Try my version:
Try my version:
Try my version:
You can use the following.
Basically this says if the File in the URL can’t be found on the server then in the backend load it again using .php. This will basically make the server take a /file request and because there is no /file on the server it will load /file.php instead. The user wont see the switch over but can still load both ways.
You can use the following.
Basically this says if the File in the URL can’t be found on the server then in the backend load it again using .php. This will basically make the server take a /file request and because there is no /file on the server it will load /file.php instead. The user wont see the switch over but can still load both ways.
Hi the code is working fine ,the problem after login to my page it is re directing to next page ,please help it out, i launced my website in hostinger
This comment has been deleted
If you looking for complete solution with explanation then i will recommended to Read this: How to Hide PHP Extenstion Step By Step
You will get your answer 100%.
How to add 404 error page when extension restricted .php and .html both
Very very thanks… code working