How to set status code for certain URLs with IF in htaccess – Apache
I have URLs like https://example.com/page/1234/ and https://example.com/page/9876/. For these URLs i want set certain status code via htaccess (Apache 2.4). I try to do it with <If "%{REQUEST_URI} =~ (1234|9876)/$"> Header set Status "HTTP/1.1 410 Gone" </If> but i seem…