Hide Url Get Parameters?

Hi Everyone,

 How to hide URL GET parameters (http://localhost/test/page[u][i][b]?view=about[/b][/i][/u]). I've searched lot of posts. They all are saying about rewrite and URL manager, but i couldn't achieve what i want. <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/sad.gif' class='bbc_emoticon' alt=':(' />

My scenario is,

I just want to hide the URL GET parameters.



I wanted to hide ?view=about.

Thanks in Advance.

You want to remove them completely from the URL? How would the application know which action to run?

Can you be more specific about how you expect this to work and how you want URLs to look for different pages?

Thanks for your reply dude :)

I just wanted to hide not remove.

The URL should look like this http://localhost/test/page. Other pages like this http://localhost/test/post. In a simple words my GET parameters should act like POST parameters.


Why would you want test/page to lead to the about page? Surely test/about would make more sense. You can do that using the URL routing rules. Regardless, you need to identify the page in some manner in the URL unless you want to make POST requests as the user navigates through the site.

Which controller and action should test/post lead to? Can you give examples of each controller and action that you want to use, along with the URL that you want to access it with?

If it’s so, then how i could modify my urlManager? so that “test/about” will be achieved?



or google "yii seo friendly urls"