Skip to content

Custom error page in Symfony app #1043

Discussion options

You must be logged in to vote

I figured it out myself, works like that:

	# Set error handling to index.php
	handle_errors {
		rewrite * /index.php?error_code={http.error.status_code}
		php_server {
			root /app/public
			index index.php
		}
	}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kjchmielewski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant