Title: Custom Error Pages
Author: Jesin A
Published: <strong>2 نوامبر 2013</strong>
Last modified: 22 می 2023

---

جستجوی افزونه‌ها

![](https://ps.w.org/custom-error-pages/assets/banner-772x250.png?rev=1057423)

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/custom-error-pages_4173ab.svg)

# Custom Error Pages

 توسط [Jesin A](https://profiles.wordpress.org/jesin/)

[دانلود](https://downloads.wordpress.org/plugin/custom-error-pages.1.2.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/custom-error-pages/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/custom-error-pages/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/custom-error-pages/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/custom-error-pages/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/custom-error-pages/)

## توضیحات

WordPress offers inbuilt support for custom 404 pages on all themes. But what about
custom pages for other common errors like 401 and 403? You end up seeing a bland
error page of the Web Server.

With this plugin you can easily create custom 401 and 403 error pages with any theme
without writing a single line of code!!! And the best part is that you set it and
forget it. Yes, you don’t have to do any changes even if you change themes. The 
heading and text you want on 401 and 403 error pages are displayed on the currently
active theme.

#### Further Reading

 * [Create WordPress 401 and 403 error pages](https://websistent.com/wordpress-custom-403-401-error-page/)
   WITHOUT using this plugin
 * The [Custom Error Pages Plugin](https://websistent.com/wordpress-plugins/custom-error-pages/)
   official homepage.

## عکس‌های صفحه

[⌊Modify the title and content values of your custom error page from Settings > 
Custom Error Pages⌉⌊Modify the title and content values of your custom error page
from Settings > Custom Error Pages⌉[

Modify the title and content values of your custom error page from Settings > Custom
Error Pages

[⌊A Custom 403 Error page on the TwentyThirteen theme⌉⌊A Custom 403 Error page on
the TwentyThirteen theme⌉[

A Custom 403 Error page on the TwentyThirteen theme

[⌊A Custom 403 Error page on the Customizr theme⌉⌊A Custom 403 Error page on the
Customizr theme⌉[

A Custom 403 Error page on the Customizr theme

[⌊A Custom 403 Error page on the Expound theme⌉⌊A Custom 403 Error page on the Expound
theme⌉[

A Custom 403 Error page on the Expound theme

## نصب

 1. Install and activate the custom error pages plugin.
 2. From the **wp-admin** go to _Settings > Custom Error Pages_, fill in the heading
    and content boxes, save the changes and preview it.
 3. Configure your web server to use a custom error page.

Apache users edit your **.htaccess** file and add the following lines.

    ```
    ErrorDocument 403 /index.php?status=403
    ErrorDocument 401 /index.php?status=401
    ```

Nginx users edit your **nginx.conf** file and add the following lines.

    ```
    error_page  403 = /index.php?status=403
    error_page  401 = /index.php?status=401
    ```

Try accessing a file or directory which is forbidden like

http://www.example.com/.htaccess

http://www.example.com/wp-includes/

Did you see a custom 403 page in all the glory of your theme?

## سوالات متداول

### Should I do anything if I change themes?

No not at all. You just install the plugin set it and forget it. The plugin isn’t
theme bound so it’ll work even after switching themes.

### I noticed define( ‘DONOTCACHEPAGE’, TRUE ); in the plugin code what is it for?

This tells caching plugins like W3 Total Cache and WP Super Cache not to cache the
401 and 403 error pages. This does **NOT** affect the cacheability any other pages
of your site.

### Does this plugin automatically edit the .htaccess or nginx.conf file?

No it doesn’t. You have to manually edit it and add the necessary configuration 
specified in the plugin’s option page.

## نقد و بررسی‌ها

![](https://secure.gravatar.com/avatar/a61a3fe46da238ccd95abfc954213ec2486724e33b3a31caa2c3f6adf6aa27fb?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-12777/)󠁿

 [Eli](https://profiles.wordpress.org/realact/) 26 می 2023

Works exactly as described, letting you customize other default error messages besides
just the 404 like most other plugins on this category do.

![](https://secure.gravatar.com/avatar/5146f0764e00f8116c4d6c0e8af7d77da8aeba106cf2211a380a787fc18855eb?
s=60&d=retro&r=g)

### 󠀁[It just works](https://wordpress.org/support/topic/it-just-works-569/)󠁿

 [OkorieWare](https://profiles.wordpress.org/okorieware/) 14 ژانویه 2020

Straight forward setup. I especially like that it adapts to the current theme.

![](https://secure.gravatar.com/avatar/282b1653b5b3728f9f26a3bad26dfb38098b2d66d1dd8a59d0da3dabf61a05a6?
s=60&d=retro&r=g)

### 󠀁[Excellent!!](https://wordpress.org/support/topic/excellent-7652/)󠁿

 [senlivelife](https://profiles.wordpress.org/senlivelife/) 5 می 2019

Actualy I was little scared of editing .htaccess. But I added it to bottom on .htaccess
and it worked well. Excellent pugin! Thank you:)

![](https://secure.gravatar.com/avatar/94b0896a86be36396a055b76ee68a71bd894dbd439fbf89195f5ab5c5f4fb27f?
s=60&d=retro&r=g)

### 󠀁[Easy, it works](https://wordpress.org/support/topic/easy-it-works/)󠁿

 [jorgensenmattd](https://profiles.wordpress.org/jorgensenmattd/) 18 آوریل 2018

Easy way to create custom 403s.

![](https://secure.gravatar.com/avatar/811c8b17eaeac6d8664398595c81c98af6ca1e0634aba19b344f68ce7a56e3cb?
s=60&d=retro&r=g)

### 󠀁[Just great](https://wordpress.org/support/topic/just-great-256/)󠁿

 [vodonosac](https://profiles.wordpress.org/vodonosac/) 29 نوامبر 2017

This plugin is simple to setup and use, all I did after activation was that I changed
error message text and that was it! It saved me time on creating my own error pages
on a simple wp site! Great work!

![](https://secure.gravatar.com/avatar/d013f9bcf067ec88f16522c7ba54b5a3266bd4e18ca98ea5d0ba6723a332e0a7?
s=60&d=retro&r=g)

### 󠀁[Very easy to setup](https://wordpress.org/support/topic/very-easy-to-setup-13/)󠁿

 [firestrife](https://profiles.wordpress.org/firestrife/) 3 سپتامبر 2017 1 پاسخ

Just an feature request, can you add option to hide title? Because I prefer to use
page builder plugin for better design.

 [ خواندن تمامی 12 نقد و بررسی‌ ](https://wordpress.org/support/plugin/custom-error-pages/reviews/)

## توسعه دهندگان و همکاران

“Custom Error Pages” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ Jesin A ](https://profiles.wordpress.org/jesin/)

[ترجمه “Custom Error Pages” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/custom-error-pages)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/custom-error-pages/)،
[مخزن SVN](https://plugins.svn.wordpress.org/custom-error-pages/) را بررسی کنید،
یا از طریق [RSS](https://plugins.trac.wordpress.org/log/custom-error-pages/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/custom-error-pages/) مشترک
شوید.

## گزارش تغییرات

#### 1.2

 * Removed deprecated screen_icon() function
 * Compatibility check with WordPress 6.2

#### 1.1

 * Fixed a bug that displayed the thumbnail of Post ID 1
 * Reduced repetitive code with inheritance
 * Compatibility check with WordPress 3.8

#### 1.0

 * Initial version

## اطلاعات

 *  نگارش **1.2**
 *  آخرین به‌روزرسانی **3 سال پیش**
 *  نصب‌های فعال **500+**
 *  نگارش وردپرس ** 3.3.0 یا بالاتر **
 *  آزمایش‌شده تا **6.2.11**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/custom-error-pages/)
 * برچسب
 * [401](https://fa.wordpress.org/plugins/tags/401/)[403](https://fa.wordpress.org/plugins/tags/403/)
   [404](https://fa.wordpress.org/plugins/tags/404/)[error](https://fa.wordpress.org/plugins/tags/error/)
   [errors](https://fa.wordpress.org/plugins/tags/errors/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/custom-error-pages/advanced/)

## امتیازها

 5 از 5 ستاره.

 *  [  امتیاز 12 5-ستاره     ](https://wordpress.org/support/plugin/custom-error-pages/reviews/?filter=5)
 *  [  امتیاز 0 4-ستاره     ](https://wordpress.org/support/plugin/custom-error-pages/reviews/?filter=4)
 *  [  امتیاز 0 3-ستاره     ](https://wordpress.org/support/plugin/custom-error-pages/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/custom-error-pages/reviews/?filter=2)
 *  [  امتیاز 0 1-ستاره     ](https://wordpress.org/support/plugin/custom-error-pages/reviews/?filter=1)

[بررسی شما](https://wordpress.org/support/plugin/custom-error-pages/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/custom-error-pages/reviews/)

## مشارکت کنندگان

 *   [ Jesin A ](https://profiles.wordpress.org/jesin/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/custom-error-pages/)