dotCMS ships with a Java implemention of mod_rewrite called tuckey. This allows you to set up rewrite rules which can both forward and redirect. The manual for writing the rules can be found here
An example rule would be
<rule>To be used, the RewriteFilter needs to be enabled in the web.xml. The dotCMS plugin architecture provides a way to provide rewrite rules in a sustainable manner.