S
S
Sergey Volevach2014-12-23 13:49:11
htaccess
Sergey Volevach, 2014-12-23 13:49:11

How to set up a 404 error for a link ending in /catalog/?id=?

Good afternoon. There is a link stekko.ru/catalog/?id= when you go to it, I get to the page stekko.ru/catalog/, you need this link to give a 404 error.
I write in HTACCESS: RewriteRule catalog/?id= [L,R=404] doesn't work. Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twixoff, 2014-12-23
@twixoff

Put $ at the end of the rule to mark the end of the line.
catalog/?id=$

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question