Hi.
What's wrong in this rules:

RewriteEngine On
RewriteRule /?(home|new-ticket|tickets-list)/?$ index.php?a=$1 [L]
RewriteRule /?(home|new-ticket|tickets-list)/([0-9]+)/ index.php?a=$1&tid=$2 [L]

URL

http://www.mysite.com/new-ticket/ It works
http://www.mysite.com/new-ticket/14/ It doesn't work

Can you help me, please ?

Bye.

    Not sure what the problem is... both URL's worked just fine when I tested your rules. Perhaps you forgot the trailing slash on the second URL? If so, you might want to make it optional in the second RewriteRule as well.

      bradgrafelman wrote:

      Not sure what the problem is... both URL's worked just fine when I tested your rules. Perhaps you forgot the trailing slash on the second URL? If so, you might want to make it optional in the second RewriteRule as well.

      Thanks to your words I've caught my ugly
      error :o

      Thanks a lot 😉

      Bye.

        Write a Reply...