I have this current expression, that takes site.com/index.php to site.com/index
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]
I need to make it accept filename with two periods in them, like site.com/core.index.php to site.com/core.index
Any help would be appreciated!
More simple solution also available: