RewriteEngine On

RewriteRule ^(.+)-datastore/(.+) datafwd.php?extension=$1&file=$2 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php [QSA]

php_flag display_errors on
php_flag display_startup_errors on