Right now the website has search results like the following url.

```
example.com/?s=ajax

```

I am planning to change this to 

```
example.com/search/ajax

```

How does Google or any other search engine treat the search results page for a website. My guess is they don't index the first link but they may index the second link. Do you think it will have any negative consequences to the SEO?. 

Should I a disallow /search/\* in my robots.txt ? Will that be sufficient to prevent against any penalties from the search engine.

On a similar note how does Category pages get treated by Search engine. Should we disallow them as well ?