CleanURL Problem


I’m having a problem with one of my cleanURLs. The code I have is:

RewriteRule /support/view-ticket/(.*)/(.*)/$ /view-ticket.php?ticketID=$1&ticketStatus=$2 [I,L,U,O]

Problem is, $ticketID simply becomes $1/$2. i.e. if $1 is 5 and $2 is 10, I would have $_GET[‘ticketID’] being 5/10 and ticketStatus non-existant.

Any help would be appreciated.


Try this

RewriteRule /support/view-ticket/(\\d+)/(\\d+)/$ /view-ticket.php?ticketID=$1&ticketStatus=$2 [I,L,U,O]

Thanks. The problem turned out to be an earlier rewrite in a different format. It’s now:

RewriteRule /support/view-ticket/$ /view-ticket.php [I,L,U,O]
RewriteRule /support/view-ticket/([0-9]+)/$ /view-ticket.php?ticketID=$1 [I,L,U,O]
RewriteRule /support/view-ticket/([0-9]+)/([0-9]+)/$ /view-ticket.php?ticketID=$1&ticketStatus=$2 [I,L,U,O]