I have the following to remove *.php extensions:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteCond %{REQUEST_URI} index\.php
RewriteRule ^(.*)index\.php$ $1 [R=301,L]
The problem is that now I've installed an ssl certificate and its not working for subdirectories.
https://www.site.com WORKING(200)
https://www.site.com/example NOT WORKING (404)
https://www.site.com/example.php WORKING(200)
Can somebody help me?