Student Reviews
( 5 Of 5 )
1 review
Video of Creating Custom Error Pages in Apache HTTP Server course by Steve Griffith - Prof3ssorSt3v3 channel, video No. 4 free certified online
This video discusses how to use your .htaccess file to create automatic redirects for any HTTP Status code.
Remember that if you want to redirect for permission reasons then the error document must be in a location that has no permission restrictions.
If you want, you can make your custom error page a PHP file and add some dynamic functionality by using the actual URL that the user submitted to cause the redirect.
.htaccess Code GIST: https://gist.github.com/prof3ssorSt3v3/83e1b112cf71c2f4a4dc26034a2c0afc
404 error page GIST: https://gist.github.com/prof3ssorSt3v3/16bb9e3f24d3ae71abe7579884c85ba0
401 error page GIST: https://gist.github.com/prof3ssorSt3v3/1de1b3d34f30876c81790a62c986cc87