D
D
Dmitry Klimantovich2020-10-15 13:02:07
htaccess
Dmitry Klimantovich, 2020-10-15 13:02:07

How to make a redirect to an error from an empty page?

Here is an example of a url in Wordpress that gives a blank page:

/wp-content/themes/
/wp-content/themes/index.php

maybe some more, but I don't know.
How do I redirect them to a 404 error?

I tried using the Redirection plugin, but something did not work either through a direct url or through a regular expression.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2020-10-15
@opium

And what for?
This is a really stupid request, and here you really need to ask, but what for?
This does not affect the work and life of the site in any way from the word at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question