This is better (a "+" instead of a "*" after the ")" )
RewriteRule ^([0-9]+)$ view.php?id=$1
Search found 2 matches
- 30 Aug 2006, 16:23
- Forum: Customizations
- Topic: Trivial RewriteRule for simpler issue URL
- Replies: 1
- Views: 4837
- 30 Aug 2006, 14:38
- Forum: Customizations
- Topic: Trivial RewriteRule for simpler issue URL
- Replies: 1
- Views: 4837
Trivial RewriteRule for simpler issue URL
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
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