[rt-users] Short URLs for Tickets and Queues

Bruce Campbell bruce_campbell at ripe.net
Tue Apr 9 11:20:16 EDT 2002


On Tue, 9 Apr 2002, Smylers wrote:

>   RewriteEngine on

`The great thing about mod_rewrite is it gives you all the configurability
 and flexibility of Sendmail. The downside to mod_rewrite is that it gives
 you all the configurability and flexibility of Sendmail.''
	-- Brian Behlendorf      Apache Group

>   # Treat a single number as a ticket number:
>   RewriteRule ^/([0-9]+)$ /Ticket/Display.html?id=$1

Remember to finish processing the request, with 'last rule' afterwards,
eg:

	RewriteRule ^/([0-9]+)$ /Ticket/Display.html?id=$1 [L]

>   # Treat anything else that doesn't look like a file or directory as a
>   # queue name:
>   RewriteRule ^/([^/.]+)$ /Search/Listing.html?ShowQueue=$1

	RewriteRule ^/([^/.]+)$ /Search/Listing.html?ShowQueue=$1 [L]

Regards,

-- 
                             Bruce Campbell                            RIPE
                   Systems/Network Engineer                             NCC
                 www.ripe.net - PGP562C8B1B                      Operations






More information about the rt-users mailing list