繁体   English   中英

htaccess 文件与 ubuntu 和 WordPress

[英]htaccess file with ubuntu and WordPress

我在 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

但是当输入一些 URL 时,404 页面没有正确显示,我没有得到自定义的 404 错误页面。 示例https://healthguruwealth.com/fgdfdgf

默认情况下,WordPress 不会创建自定义 404 页面。 您可以创建新的 404 模板。 请按照以下链接的说明进行操作: https : //codex.wordpress.org/Creating_an_Error_404_Page

或者,您可以通过像ithemes security这样的插件创建

暂无
暂无

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

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