 <h2>1st method</h2> <p>If those parts are hardcoded you could simply change your links adding <code>../</code> before :</p> <p><code>path/to/my/assets/style.css</code></p> <p>would become</p> <p><code>../path/to/my/assets/style.css</code></p> <hr> <h2>2nd method</h2> <p>You could use <code>.htaccess</code> as Marc suggested (assuming your assets folder is <code>assets</code> :</p> <pre><code>RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^course/assets/(.*) assets/$1 </code></pre> <p>Or using a redirection</p> <pre><code>RedirectMatch 303 /courses/assets(.*) /assets/$1 </code></pre> <blockquote> <p>Note 303 See Other response code which seems more appropriate <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4" rel="nofollow">http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4</a></p> </blockquote>