I want to write a small script to know if two URLS lead to the same page. For example: http://google.com and http://google.com/# will lead to the same URL. Also sometimes http://URL1.com and http://URL2.com also lead to the same page although they are not the same URL.
Is there an easy way to do that?
If you need more information please tell me and i will edit the post
NOTE: this is NOT a homework question so please be as helpful as you can.
Thank you all!
This is a really dirty way, but I suppose that’s what you want:
Note that it will NOT work if the page is having minor changes such as time (i.e, request is made exactly between 13:45:59 and 13:46:00), cookie, or anything dynamic.