something like this is what I am looking for. rewrite ^/backoffice/?(.*)$ /backoffice/dispatch.php?page=$1 last; try_files $uri $uri/ /backoffice/dispatch.php?$args;by skogsmannen - Migration from Other Servers
On my test setup I succeeded with the setup but now I am banging my head against the wall with this. The directory is /backoffice and the working .htaccess rules are. === Options -Multiviews RewriteEngine On RewriteBase /backoffice/ RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)//([-_a-zA-Z0-9]+)/$ dispatch.php?page=$1&action=$2&id=$3 RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Zby skogsmannen - Migration from Other Servers