Hide php extension
Hi mi friends
It's possible access a file using variables without use the extension .php of the file
By example y want to call my file like this:
Actually it works as this: f.php?u=1321
I want to do this: f?u=1312
It's possible? yes? how?
Thanks in advance
-
I believe you can use this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php
In your .htaccess0 -
Hello, You may also find the following third-party URL helpful: Remove .php extension with .htaccess Thanks! 0
Please sign in to leave a comment.
Comments
2 comments