该脚本将从URL中调用,example.com/photo.php?id=123或者example.com/photos/123取决于是否启用了漂亮的URL.
example.com/photo.php?id=123
example.com/photos/123
如果照片#123不存在,请求example.com/photos/123应该抛出404错误.但是,怎么样example.com/photo.php?id=123?
html http http-status-code-404
html ×1
http ×1
http-status-code-404 ×1