Add support for share urls to index.php script.