Ah, I see. My initial reaction here is to say that if the sites are the same, but in different languages, you probably should have built your entire structure differently, with only a GET variable's difference. Something like:
PHP Code:
if($_GET['lang'] == "es") { require("../_spanish/" . $PHP_SELF); die(); }
If you'd rather keep your (apparent) directory structure, you can just check for the presence of "_spanish" in the path, and tack on another ../. E.G.:
PHP Code:
<a href="<?php echo(strstr($SCRIPT_FILENAME, "_spanish") ? "../" . $href : $href); ?>">
Bookmarks