Answer the question
In order to leave comments, you need to log in
How to check the existence of a resource by URI?
I make regions on subdomains, each region has its own separate context with copied resources. Therefore, in each region, the same pages have the same URIs (namely, URIs and not URLs). For example, the delivery page in which region it would not be, everywhere has the URI /dostavka So here's the question: when switching between regions, the same page is loaded from which the person chose another city. For example, if a person was on the site.ru/dostavka page and wants to go to the Moscow site, then the link when clicking on the city of Moscow will be msk.site.ru/dostavkaBut here a problem arises, if suddenly there is no page with such a URI in the target region, then the chela will be thrown to a 404 page, so just adding a subdomain for the region to a stupid link is a bad idea. When generating a page and a region selection window, in particular, I want to check if a page exists with a similar current URI. Is there a built-in method in the mod that returns the resource ID by URI, or can you check its existence in some other way?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question