We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Multiple 404 pages depending on subdirectory

Asana Webdev October 14, 2014 by Asana Webdev

Has anyone successfully made more than one 404 page in Statamic? I'd like to have the same template but different content.md for a 404 page if the URL is in a specific subdirectory, a la: Stack Overflow: Use 2 different 404 pages dependent on directory

I'm not sure if this is safe to do in the .htaccess file as the example above. I'm thinking it has something to do with the lines after // 404 is special if ($data['_local_path'] === "/404.{$content_type}") { $local_filename = $local_path;

Thanks for your help!

Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
3 Replies