eZ Platform Discussions

Disable the system URLs


Hi all,

I need to disable the system URLs that are generated by the viewController; example: ***/content/location/< locationId >***. That the content can only be navigated by the Alias Url. Is it possible to disable those URLs?

Example URL: https://ezplatform.com/content/location/85


You can create an event listener that will throw a NotFoundHttpException if it encouters that system route. I don’t know, however, how that will affect the system.

P.S. Already replied in Slack, but replying here too for archival purposes.


Ok thank you I’m going to try it