简体   繁体   English

htaccess 文件与 ubuntu 和 WordPress

[英]htaccess file with ubuntu and WordPress

I set the following "htaccess" file code on WordPress folder我在 WordPress 文件夹上设置了以下“htaccess”文件代码

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPresssss

but when typing some URL the 404 pages are not showing properly and I don't get the custom 404 error page.但是当输入一些 URL 时,404 页面没有正确显示,我没有得到自定义的 404 错误页面。 example https://healthguruwealth.com/fgdfdgf示例https://healthguruwealth.com/fgdfdgf

By default, WordPress doesn't create custom 404 pages.默认情况下,WordPress 不会创建自定义 404 页面。 You can create a new 404 templates.您可以创建新的 404 模板。 Please follow the instruction as per the link below: https://codex.wordpress.org/Creating_an_Error_404_Page请按照以下链接的说明进行操作: https : //codex.wordpress.org/Creating_an_Error_404_Page

Or, you can create through plugins like ithemes security或者,您可以通过像ithemes security这样的插件创建

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM