Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How do I set the Default404 route to an external page?
HalfCat
✭✭
Well, I would like to redirect my 404 Errors to an external page (but on same domain). Vanilla is installed in the folder /forum
and I want the 404 page to be at /404
for example.
I tried to put in an absolute path including http://
but that didn't work.
0
Best Answer
-
Todd Vanilla Staff
This may be something we didn't intend on happening. I do recommend you make your error pages actual pages in vanilla so that they'll return the proper http codes rather than redirecting somewhere else.
And if you want to theme your error pages you can always copy their views into your theme. Most of them are in applications/dashboard/views/home.
1
Answers
Anyone?
Have you tried this config variable:
Edit: I just tried changing the url to an external page after which my server threw an "allocated memory exceeded" error in my face.
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
@kasperisager: Thanks for your reply. That is basically the same as doing it via dashboard settings. What I can't figure out is how to "break out" of the forum folder to link to my 404 page.
Edit: Didn't see your edit
This may be something we didn't intend on happening. I do recommend you make your error pages actual pages in vanilla so that they'll return the proper http codes rather than redirecting somewhere else.
And if you want to theme your error pages you can always copy their views into your theme. Most of them are in applications/dashboard/views/home.
@Todd: All right, I'll go with that then.