I have a development version of a website that I want to hide/disable. But I don’t want to delete the files for the moment. I also don’t want to redirect requests to somewhere else. I just want to respond to the requests for that website with a HTTP 404.
How should I do it?
I am using Apache and .htaccess.
You could do something like this:
This is a little gentler than a hard 404. Otherwise you can change the response code. Hope this helps.