In EPiServer 7.5 you can use:
string url = "http://site.com/subpage";
var contentReference = UrlResolver.Current.Route(new UrlBuilder(url));
That should basically apply to CMS 7 as well, but then there is no static Current property on UrlResolver, instead you should get the instance from IOC/ServiceLocator.Currrent
I have some links that I need to resolve to pageReferences, the PermanentLinkUtility.GetContentReference seems like the ideal solution but does not work.
The way I've implemented it is as follows
var site = "http://site.com/url/subpage";
var url = new UrlBuilder(site);
var a = PermanentLinkUtility.GetContentReference(url);
This doesn't work at all in an EPi 7 MVC site.
Any advice where to start?