mercredi 22 juillet 2015

How to redirect an entrie site to a 404 page in rails 3

I am looking for the correct way to redirect and entire site to a 404 page in the routes.rb file in a rails 3 application. I can do a page using: match 'url' => redirect("/404")

But I want to know how to 404 the entire site without using 200 redirects, any help would be greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire