Web server URL rewriting

In dmBridge 1.x, "clean URLs" were optional. In version 2.x, they are required. In order for them to work, the web server must be configured to support URL rewriting. This is easy to get working on both Apache and IIS. On Apache, it requires the mod_rewrite module to be enabled in httpd.conf. On IIS, there are a few different options, one of which is ISAPI Rewrite. The free Lite version does not support .htaccess files, but it's easy enough to add global rules instead. An example set:

RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/dm(.*)$ /dm/index.php?q=$1 [L,QSA]

This would get saved in C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf. Naturally, you will need to change /dm to the path to your dmBridge instance.

dmBridge includes an .htaccess file which the web server should read (if it is configured to do so; in Apache, see the AllowOverride directive in httpd.conf). If the web server is configured to read .htaccess files, then this file should "just work" and there should be no further configuration necessary.

You can use the same rules in your Apache httpd.conf file as well if you can't or don't want to use .htaccess files.