Forum Moderators: phranque
<a href="/full-server-path-to-open/'.urlencode($add['id']).'/'.urlencode($rub).'/">yada </a>
<a href="http://www.example.com/full-server-path-to-open/'.urlencode($add['id']).'/'.urlencode($rub).'/">yada </a>
It is the client (a browser in this case) that resolves relative links on pages, based on the "page URL" that it shows in its address bar. Since you have now changed all of the page URLs, the browser thinks that all of these included objects are in the same "virtual subdirectories" as your pages now appear to be in.
Jim