M
M
merouz2018-07-07 14:12:51
Search Engine Optimization
merouz, 2018-07-07 14:12:51

How to set up a direct 404 server response (no redirects) for a specific URL?

Good afternoon, can anyone tell me how to make a direct 404 server response (without redirects) for a specific URL address? For example, there is a link site.com/star-24-2- , you need to make it so that it gives a 404 server response

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Topodin, 2018-08-23
@Topodin

In the .htaccess file, enter the line:
RewriteRule ^star-24-2-$ - [R=404,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question