Title: 4zero4
Author: Fabio Moro
Published: <strong>মাৰ্চ 7, 2019</strong>
Last modified: জুন 4, 2026

---

প্লাগিনৰ সন্ধান কৰক

![](https://s.w.org/plugins/geopattern-icon/4zero4.svg)

# 4zero4

 [Fabio Moro](https://profiles.wordpress.org/devfabio/)-ৰ দ্বাৰা

[ডাউনল’ড কৰক](https://downloads.wordpress.org/plugin/4zero4.1.2.zip)

 * [বিশদ বিৱৰণ](https://as.wordpress.org/plugins/4zero4/#description)
 * [পৰ্য্যালোচনা](https://as.wordpress.org/plugins/4zero4/#reviews)
 *  [ইনষ্টলেশ্যন](https://as.wordpress.org/plugins/4zero4/#installation)
 * [বিকাশ](https://as.wordpress.org/plugins/4zero4/#developers)

 [সাহায্য](https://wordpress.org/support/plugin/4zero4/)

## বৰ্ণনা

4zero4 makes your 404 pages useful. When a visitor reaches a URL that no longer

exists, the plugin builds a search query from the requested address and redirects
the visitor to your site’s search results, so they land on relevant content instead
of an empty error page.

For example, a request for `/my-old-product-name/` that no longer resolves is
 turned
into a search for “my old product name”.

Key points:

 * **Zero configuration.** Activate it and it works.
 * **Temporary redirect (302).** The original URL may become valid again, so the
   
   redirect is never cached as permanently moved.
 * **Front-end only.** It never interferes with the admin area, feeds or the REST
   
   API, and only acts on normal GET page views.
 * **No external services.** The plugin does not send any data anywhere and does
   
   not use tracking or analytics.

#### Developer hooks

The behaviour can be customised with filters:

 * `p4zero4_search_terms` — change (or clear, to skip) the terms extracted from 
   the URL.
 * `p4zero4_redirect_url` — change (or clear, to cancel) the destination URL.
 * `p4zero4_redirect_status` — change the HTTP status code (default `302`).

## ইনষ্টলেশ্যন

 1. Upload the `4zero4` folder to `/wp-content/plugins/`, or install the plugin
     from
    the Plugins screen in WordPress.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. That’s it — there are no settings. Any 404 will now redirect to a matching
     site
    search.

## সঘনাই উত্থাপিত প্ৰশ্ন

### Does the plugin have a settings page?

No. It works out of the box with no configuration.

### Why am I redirected with a 302 and not a 301?

A 404 is, by definition, temporary: the page might be restored later. A permanent

301 redirect would be cached by browsers and search engines and would be hard to
undo. You can change the status code with the `p4zero4_redirect_status` filter.

### Can I customise the search terms or the destination?

Yes. Use the `p4zero4_search_terms`, `p4zero4_redirect_url` and
 p4zero4_redirect_status
filters described in the Description.

### Does the plugin send any data to external services?

No. It performs a local redirect on your own site and contacts no third party.

## পৰ্য্যালোচনা

এই প্লাগিনৰ বাবে কোনো পৰ্য্যালোচনা নাই।

## অৱদানকাৰী আৰু বিকাশকাৰীসকল

“4zero4” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান আগবঢ়াইছে।

অৱদানকাৰীসকল

 *   [ Fabio Moro ](https://profiles.wordpress.org/devfabio/)

“4zero4” 1টা ভাষাত অনুবাদ কৰা হৈছে। [অনুবাদকসকল](https://translate.wordpress.org/projects/wp-plugins/4zero4/contributors)
ক তেওঁলোকৰ অৱদানৰ বাবে ধন্যবাদ।

[আপোনাৰ ভাষাত “4zero4” অনুবাদ কৰক।](https://translate.wordpress.org/projects/wp-plugins/4zero4)

### বিকাশৰ প্ৰতি আগ্ৰহী?

[ক’ড ব্ৰাউজ কৰক](https://plugins.trac.wordpress.org/browser/4zero4/), [SVN ৰিপজিটৰী](https://plugins.svn.wordpress.org/4zero4/)
চাওক নাইবা [RSS](https://plugins.trac.wordpress.org/log/4zero4/?limit=100&mode=stop_on_copy&format=rss)-
দ্বাৰা [বিকাশৰ পঞ্জী](https://plugins.trac.wordpress.org/log/4zero4/) ছাবস্ক্ৰাইব
কৰক।

## সলনি-পঞ্জী

#### 1.2

 * Security: the requested URL is now read, unslashed and sanitised safely instead
   
   of using a raw server variable.
 * Redirects now use `wp_safe_redirect()` with a temporary 302 status instead of
   a
    raw permanent 301 header.
 * Switched to the `template_redirect` hook and added guards for admin, feeds, REST
   
   and non-GET requests.
 * Added a guard against direct file access (ABSPATH check).
 * Added the `p4zero4_search_terms`, `p4zero4_redirect_url` and
    p4zero4_redirect_status
   filters.
 * Completed the plugin header (License, Text Domain, Requires at least, Requires
   PHP).
 * Rewrote the readme in English with full sections; fixed the Stable tag to match
   
   the plugin version.

#### 1.1

 * Previous public release.

## মেটা

 *  **1.2** সংস্কৰণ
 *  **4 মাহ আগত** শেষবাৰ আপডে’ট হৈছিল
 *  সক্ৰিয় ইনষ্টলেশ্যন **10টাতকৈ কম**
 *  WordPress-ৰ সংস্কৰণ ** 6.5 বা তাতকৈ ওপৰৰ **
 *  ইমানলৈকে পৰীক্ষা কৰা হৈছে **7.0.7**
 *  PHP-ৰ সংস্কৰণ ** 7.4 বা তাতকৈ ওপৰৰ **
 *  ভাষাবোৰ
 * [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/4zero4/) আৰু [English (US)](https://wordpress.org/plugins/4zero4/).
 *  [আপোনাৰ ভাষাত অনুবাদ কৰক](https://translate.wordpress.org/projects/wp-plugins/4zero4)
 * [404](https://as.wordpress.org/plugins/tags/404/)[error page](https://as.wordpress.org/plugins/tags/error-page/)
   [redirect](https://as.wordpress.org/plugins/tags/redirect/)[search](https://as.wordpress.org/plugins/tags/search/)
 *  টেগবোৰ
 *  [উচ্চখাপৰ ভিউ](https://as.wordpress.org/plugins/4zero4/advanced/)

## ৰে’টিংবোৰ

এতিয়ালৈ কোনো পৰ্য্যালোচনা দাখিল কৰা হোৱা নাই।

[Your review](https://wordpress.org/support/plugin/4zero4/reviews/#new-post)

[সকলো পৰ্য্যালোচনা চাওক](https://wordpress.org/support/plugin/4zero4/reviews/)

## অৱদানকাৰীসকল

 *   [ Fabio Moro ](https://profiles.wordpress.org/devfabio/)

## সাহায্য

কিবা ক’বলগীয়া আছে? সহায় লাগে?

 [সাহায্যৰ ফ’ৰাম চাওক](https://wordpress.org/support/plugin/4zero4/)