The only thing you have stored is the topic slug?
If that’s the case a GET request to https://example.com/t/slug will return 301 for an existing topic and 404 for one that don’t exists yet.
The only thing you have stored is the topic slug?
If that’s the case a GET request to https://example.com/t/slug will return 301 for an existing topic and 404 for one that don’t exists yet.