I think it might be solve using
rewrite.php in
wp-includes/rewrite.php
but I don’t know how & which function should be modify.
I have read this in detailed & this does not cover my problem. Let me clear more. My links like Link 1, Link 2 are not like a regular WP posts I created them form my framework in mysql db table and fetch in left sidebar on href I used url field (fetches from db table) which is Link-1, Link-2 in this case and on detail page template I just fetch records from db table & show.
Now if I use id field it works fine but when i replace id field with url field it says
Apologies, but the page you requested could not be found. Perhaps
searching will help.
Now it is more clear
I thing it is something from WP boot-striping