Mr Lucky Well-known member Jun 25, 2015 #1 I have set .htaccess to show my own error 404: Code: ErrorDocument 401 default ErrorDocument 403 default ErrorDocument 404 http://mysite.com/404.html ErrorDocument 500 default However it still just shows the default. Can anyone please help with how to do this? Thanks
I have set .htaccess to show my own error 404: Code: ErrorDocument 401 default ErrorDocument 403 default ErrorDocument 404 http://mysite.com/404.html ErrorDocument 500 default However it still just shows the default. Can anyone please help with how to do this? Thanks
Adam K M Active member Jun 25, 2015 #2 You could probably use this: https://xenforo.com/community/resources/goodfornothing-four-oh-four.767/ It looks like it would be very quick to edit the default 404 page template from that add-on with your own .html code. Upvote 0 Downvote
You could probably use this: https://xenforo.com/community/resources/goodfornothing-four-oh-four.767/ It looks like it would be very quick to edit the default 404 page template from that add-on with your own .html code.
Mr. Goodie2Shoes Well-known member Jun 25, 2015 #3 Yep, all you got to do is copy everything from your 404.html and paste it in the template 'gfn404_error' and you are good to go Upvote 0 Downvote
Yep, all you got to do is copy everything from your 404.html and paste it in the template 'gfn404_error' and you are good to go
Mr Lucky Well-known member Jun 25, 2015 #4 Thanks for that, but I still wonder why it doesn't work via the .htaccess Upvote 0 Downvote
Mr. Goodie2Shoes Well-known member Jun 25, 2015 #5 Mr Lucky said: but I still wonder why it doesn't work via the .htaccess Click to expand... That would be because these lines Code: RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d tells Apache to parse the request to index.php if there's a chance of a 404 response. Upvote 0 Downvote
Mr Lucky said: but I still wonder why it doesn't work via the .htaccess Click to expand... That would be because these lines Code: RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d tells Apache to parse the request to index.php if there's a chance of a 404 response.