RewriteEngine On

DirectoryIndex dashboard.php index.php

# Existing files/folders normally open
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# report_export without .php support
RewriteRule ^report_export/?$ report_export.php [L,QSA]

# reports_export old wrong URL ne pan report_export.php par redirect
RewriteRule ^reports_export/?$ report_export.php [L,QSA]

# Other pages without .php support
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/?$ $1.php [L,QSA]