XF 2.2 Custom Error Pages

Mister.T

Member
Hi,

I have my own custom error pages on my default website : website.com but how do I go about adding them on the forum here forums.website.com, if I just add this in my htaccess file I keep getting, the default XenForo error pages instead.

ErrorDocument 401 website.com/401.html
ErrorDocument 403 website.com/403.html
ErrorDocument 404 website.com/404.html
ErrorDocument 405 website.com/405.html
ErrorDocument 406 website.com/406.html
ErrorDocument 500 website.com/500.html
ErrorDocument 501 website.com/501.html
ErrorDocument 503 website.com/503.html

It would seem the below lines below are messing up my custom error pages, and if I delete it then my full friendly URLs no longer work.
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Thanks for any help.
 
Last edited:
site i am staff on uses a plug in for an error page.
i am not sure which one it is but it may be the same one he put on my site called custom 404 page.
how he did it i am not sure but he made something that fits his site.
 
Back
Top Bottom