Hello, my shared hosting started using LiteSpeed v8.0.1 Cloudlinux 1.3 recently and I am having issues with my custom 403 page.
When I browse this link it should redirect to my custom 403 page (I am using example domain for this thread):
When I use
When I intentionally change the path to
I am missing something, maybe there are RewriteRule loops etc. but I don't know what. I can share my whole .htaccess file if needed.
When I browse this link it should redirect to my custom 403 page (I am using example domain for this thread):
https://example.com/electronics/etc/passwd
, but it shows LiteSpeed's internal 403 Forbidden page. I am using ErrorDocument 403 /err/403.html
line in my .htaccess file, at the top of the file (I tried changing its place below RewriteEngine On directive but it didn't change anything). I tried with different rules to force 403 error, they all go to same default 403 page.When I use
ErrorDocument 403 https://example.com/err/403.html
, it shows my custom 403 page. It comes to mind if the path is wrong, but I double checked it, it is present. And also my cPanel's Errors page show no error about 403.html not being there.When I intentionally change the path to
ErrorDocument 403 /errrrr/403.html
, I get this error on my cPanel: 2023-10-14 17:42:46.277747 [INFO] [1802051] [T0] [x.x.x.x:xxxxx-49#APVH_example.com] File not found [/home/user/public_html/errrrr/403.html]
I am missing something, maybe there are RewriteRule loops etc. but I don't know what. I can share my whole .htaccess file if needed.