Trivial RewriteRule for simpler issue URL

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
flexer
Posts: 2
Joined: 30 Aug 2006, 14:32

Trivial RewriteRule for simpler issue URL

Post 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
flexer
Posts: 2
Joined: 30 Aug 2006, 14:32

Post by flexer »

This is better (a "+" instead of a "*" after the ")" )

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