Can’t Keep Pretty Url with htacess

I’d like to have url like

mydomain/a/b from mydomain/page.php?a=$1&b=$2

The htacess file understand that i want to go to mydomain/page.php?a=$1&b=$2 when i use mydomain/a/b but he change the urlname to mydomain/page.php?a=$1&b=$2 and i don’t want that, i want to keep mydomain/a/b.

Here is the htaccess file i use :

RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)$ page.php?a=$1&b=$2

Hope you can help me with this.

Source: .htaccess

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.