I want to remove my any extension of file from URLs of my website.
For example: www.example.ml/dash/logins/sign.php
to: www.example/dash/logins/sign/
I had done a lot of googling, but none of the answers worked for me. I think it didn't work, because in the logins folder I have not a single file.
There are many other files, like index.php, sign.php, etc. Do I have to keep each file in a separate folder or sing.php can change to sign/. Also, what would happen to this:
sign.php?usercode=1
Will it get converted to
sign/usercode=1
?
I already have some code present in .htaccess, so please give your answer after referring this code.
php_value display_errors Off
php_flag magic_quotes 1
php_flag magic_quotes_gpc 1
php_value mbstring.http_input auto
php_value date.timezone America/New_York
Options -Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.example.ml$ [NC]
RewriteRule ^(.*)$ https://www.example.ml/$1 [L,R=301]