[rt-users] Rewrite URLs
Phil Homewood
pdh at snapgear.com
Mon Aug 18 01:48:02 EDT 2003
Naveen Nathan wrote:
> I was wondering if anyone has by any chance to have a mod_rewrite
> directive to rewrite a URL to see a ticket #. E.g. rt.whatever.com/###
> and it goes straight to the page of the ticket.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog /var/log/apache/rewrite.log
RewriteLogLevel 0
RewriteRule ^/([0-9]+)$ /Ticket/Display.html?id=$1 [R] [L]
RewriteRule ^/([^/.]+)$ /Search/Listing.html?ShowQueue=$1 [R] [L]
</IfModule>
(taken from an rt-users posting eons ago)
--
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh at snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances
More information about the rt-users
mailing list