Timeline for Redirect Restricted Page to 404
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 15, 2018 at 2:12 | comment | added | mopsyd |
This is a good answer, but I would also use http_status_code(404); prior to setting the template to insure that the header is correct (which is significantly faster than the wordpress status_header( 404 ); function). If you are concerned with page rank, you should also put a Disallow rule in your robots.txt to indicate that it is not a public resource.
|
|
Aug 28, 2011 at 14:40 | vote | accept | Evan Yeung | ||
Aug 28, 2011 at 14:40 | history | answered | Evan Yeung | CC BY-SA 3.0 |