for friendly url,I am working urlManager in main.php,that is a good site to manage url,for more complate, can we hide url param ?
'showScriptName' => false,
for example I have url like this:
I want to display my url like this:
thankyou very much
If you wish to display this for single url then you can write rule for this.
And you can use iframe for this so that URL will not change through out your whole application only your content will be changed.
You may create a rule to redirect from
but what my question is once you redirect how you will get the id ? so that, that particular record will be edited
So what I feel that you have to create rule so that it should redirect something like
The best you can do(so you don’t mess with the url roules) is to integrate the id into the url like this: localhost/news/news/edit-78.html
Please follow this url. Hope it is useful to you…