C
C
Chesterfield252021-12-15 21:39:24
URL Handling
Chesterfield25, 2021-12-15 21:39:24

How to set up error output?

How to set up error output?

I get https://site.ru/faucet/api/an error 403
61ba35833d550075363079.png
along the way. I only have a .htaccess file in this path

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Is it possible to customize this page in this way and how to do it?
If the page just opens in the browser, then it displays a 403 error as it is at the moment, and if a post or a get request comes to this page, then everything works fine.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question