RewriteEngine On

RewriteCond %{QUERY_STRING} ^d=(.*)$ [NC]
RewriteRule ^index.php$ index.php?d=%2 [QSA]

RewriteCond %{REQUEST_FILENAME} !-l [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_URI} !^/index.php

RewriteRule ^(.+)$ ./tarp_fc32922ee550abb499ab8547e1b3c2df/index.php/$1 [QSA]