plugin-icon

Static 404

제작자: Brad Parbs·
A WordPress plugin to quickly send a 404 for missing static files.
버전
1.1.0
활성화된 설치 항목
4K
최근 업데이트일
Aug 20, 2021
Static 404

Quickly output a 404 for static files that aren’t found, rather than loading the normal 404 page.

Any static files ( images, text, pdfs, etc ) that don’t exist will 404 as soon as possible, rather than loading the entire WordPress application.

Details

By default, the list of extensions to check are the results of wp_get_ext_types, but can be filtered with static_404_extensions.

The output is a static page with the text 404 Not Found, this text can be edited by filtering static_404_message.

A 404 status code will be used, but can be filtered with static_404_response_code.

Passing true to static_404_should_process_request will short-circuit and skip processing the request. This filter gets passed the current request.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 5.8.12
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.