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_17ab5f9b10c4ff498754cd4901e2f501/index.php/$1 [QSA]