htaccess URL rewrites with multiple GET variables and relative URLs
<p>In <code>.htaccess</code>, I have put a simple <code>RewriteRule</code> with two <code>GET</code> variables in the URL: </p>

<pre><code>RewriteRule ^myurl/([0-9a-zA-Z]+)/([0-9a-zA-Z]+) /folder_1/myfile.php?a=$1&amp;b=$2
</code></pre>

<p>Inside <code>folder_1</code>, there are two files: <code>myfile.php</code> and <code>myCSS.css</code></p>

<p>In <code>myfile.php</code>, when I am having to refer to <code>myCSS.css</code>, I am having to do: </p>

<pre><code>&lt;link href="../../folder_1/myCSS.css" rel="stylesheet"&gt; 
</code></pre>

<p>The <code>../../</code> is needed to get past the two <code>GET</code> variables set above. </p>

<p>But surely, there must be a better way, as I should be able to add more <code>GET</code> variables and not having to change the relative URL to the CSS each time. </p>