I want that when you go to url: http://www.example.com/subdir/paramvalue
redirects to
http://www.example.com/subdir/index.php?param=paramvalue
My .htacce
Place this rule in subdir/.htaccess (not site root):
subdir/.htaccess
RewriteEngine On RewriteBase /subdir/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .+ index.php?param=$0 [L,QSA]