on my website I use Cake PHP and I have an url like this for an article:
/article/testx?name=Stefy
I would like to do a kind of "mod rewrite" and have an url like this:
/name/Stefy
I tried to do it from routes.php but I don't know how to do. I checked on CakePHP website about "pass" function in array and other topics here on StackOverflow but I can't find a solution, probably because I am a beginner with CakePHP. Can you help me please?
I thought I should something like this: Router::connect('/name/:id', array('controller' => 'articoli', 'action' => 'display','testx?name=$id') );
but of course it doesn't work. I think I have to use "pass" in the routes.php
Can you help me?
Thank you!