Page 1 of 1

Trivial RewriteRule for simpler issue URL

Posted: 30 Aug 2006, 14:38
by flexer
Hi,

if you have mod_rewrite enabled in your Apache configuration, you can put these lines in an .htaccess file in the root directory of you mantis configuration:

RewriteEngine On
RewriteRule ^([0-9]*)$ view.php?id=$1

Now, I can access bug 234 by http://bug.renomo.com/234

HTH

Posted: 30 Aug 2006, 16:23
by flexer
This is better (a "+" instead of a "*" after the ")" )

RewriteRule ^([0-9]+)$ view.php?id=$1