This is my current code:
RewriteRule ^test/([\w-]+)/(\d+)$ index.php?page=$1&tab=$2 [L]
With this rule above i can access a URL like this one:
But i can't access this URL:
[\w-]+ only works for words that have
-. So i tried to make another rule:
RewriteRule ^test/([a-z]+)/(\d+)$ index.php?page=$1&tab=$2 [L]
But it also don't work, even if i change
(.*). Why? How can i fix it?
This is my current URL:
localhost/public/index.php?page=x&tab=x, and i want to be able to rewrite these URLs bellow:
Update: I realized that to access this URL
localhost/public/test/example2/1 i need to change
Example2. I have no idea why...