تقييمات الطلاب
( 5 من 5 )
١ تقييمات
فيديو شرح Creating Custom Error Pages ضمن كورس ادارة Apache شرح قناة Steve Griffith - Prof3ssorSt3v3، الفديو رقم 4 مجانى معتمد اونلاين
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