Im using a custom query to display some content. This query uses url arguments as MySQL variables.
Usually when I create a link with the variables the page does not exist and it returns a 404 error.
Is there a way of creating a page on certain urls to avoid getting an "page not found"?
EDIT: To be more specific
The query is something like
SELECT * WHERE node.type = '.arg(0).' AND node_data_field_type.field_type = '.arg(1).'
The url intended would be: example.com/exhibition/speacial_feature or example.com/program/speaker_series
The link exhibition/speacial_feature or program/speaker_series are not found.