A
A
Antoniy192019-10-04 12:37:06
htaccess
Antoniy19, 2019-10-04 12:37:06

How to display a "500" error on a direct transition through .htaccess with your own text?

Hello.
Please tell me the rule for .htaccess.
It is necessary when users go directly to the site, display a 500 error to the user with their own text
. For example, "500 error, everything is fine"
But at the same time, show the site to google and Yandex bots without displaying this message
. And if a user enters from Google or Yandex search, then redirect him to subdomain?

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