Rewrite url php with parameters
<p>I want to make my actual url:</p>

<pre><code>http://mywebsite.com/portfolio.php?cat=deportes
</code></pre>

<p>Into:</p>

<pre><code>http://mywebsite.com/portfolio/cat/deportes
</code></pre>

<p>I've been trying some solutions given on here but none of them work. I can actually get rid of the .php, but do I have to change anything in the a hrefs ?</p>