MyBB Community Forums
[How To?] create custom 403 page - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] create custom 403 page (/thread-207382.html)



create custom 403 page - AlexanderPep - 2017-01-13

Title Big Grin


RE: create custom 403 page - Corey H - 2017-01-13

https://community.mybb.com/thread-187253.html


RE: create custom 403 page - AlexanderPep - 2017-01-14

don't work
i have path /forums/

look result : https://gyazo.com/b8fb7b5bff4c55c50e75feb7ae45a741

without path
https://gyazo.com/0480bada3e99d1d50c3cc29df4a5bb91


RE: create custom 403 page - Matt - 2017-01-14

Did you add the .htaccess directives? If this doesn't work, you can usually set these up in your host's control panel.


RE: create custom 403 page - AlexanderPep - 2017-01-14

Yes i add
ErrorDocument 400 /error.php
ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 405 /error.php
ErrorDocument 408 /error.php
ErrorDocument 414 /error.php
ErrorDocument 500 /error.php
ErrorDocument 502 /error.php
ErrorDocument 504 /error.php

and
ErrorDocument 400 forums/error.php
ErrorDocument 401 forums/error.php
ErrorDocument 403 forums/error.php
ErrorDocument 404 forums/error.php
ErrorDocument 405 forums/error.php
ErrorDocument 408 forums/error.php
ErrorDocument 414 forums/error.php
ErrorDocument 500 forums/error.php
ErrorDocument 502 forums/error.php
ErrorDocument 504 forums/error.php


and nothing..


RE: create custom 403 page - Matt - 2017-01-14

The check with your host if this is supported in your .htaccess, and if not, it should be available in your host control panel like I say.