Application error .htaccess

I have that problem:

Application error
An error occurred in the website and your page could not be displayed. If you are the website owner, check your logs for details.

/public_html/.htaccess :

Powered by Zyro.com

ErrorDocument 401 "Unauthorized"
ErrorDocument 403 "Forbidden"
RewriteEngine On
RewriteBase /

PERSISTENT CONTENT

DirectoryIndex index.php index.cgi index.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ zyro/$1 [L,QSA]

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /casal2017/.htpasswd
AuthGroupFile /dev/null
require valid-user

/.htpasswd
Casal2017:X1rKky1SWk.1A

Try removing lines one by one from bottom to top and refresh the page while doing that. When it stops throwing the error, you’ll have the solution :wink::wink:

1 Like

Can you please send some screenshots and the URL in question?

you have an error…
use this…

# Powered by Zyro.com
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
RewriteEngine On
RewriteBase /
#### PERSISTENT CONTENT ####
DirectoryIndex index.php index.cgi index.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ zyro/$1 [L,QSA]

AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile /casal2017/.htpasswd 
AuthGroupFile /dev/null 
require valid-user

/.htpasswd
Casal2017:X1rKky1SWk.1A
1 Like

ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html

401 & 403.html must be created too