Nginx has a system similar to Apaches mod_rewrite, while at the same time being completely different. It's also very robust, with the ability to use Perl or any other scripting language.
This would go in the server{} area for your particular domain. Of course, there are more than one way to achieve rewriting for Blesta with Nginx, but I think this is the most efficient, and avoids the evil IF-IS many people use with Nginx configurations.
If anybody is interested, there are loads of other settings that I use to speed Blesta up, which I'm still working on at the moment.
To make it easier to update https://github.com/cloudrck/blesta-nginx
location ~ (\.pdt) {
return 403;
}
location / {
error_page 404 = @blesta;
log_not_found off;
if ($request_uri ~ "^(.*)/install.php$"){
rewrite install.php /%1/install/ redirect;
}
}
location @blesta {
rewrite ^(.*)$ /index.php last;
}