在wordpress中,我想删除页面:http://domain.com/2016/03/16/我的意思是:当有人访问这个页面时,内容找不到404
发布于 2016-09-14 07:46:57
有多种方法可以做到这一点。首先,也是更容易的是使用插件。例如:https://wordpress.org/plugins/simple-301-redirects/,或者您可以编辑位于网站根目录下的.htaccess文件。然后添加一条规则,将您想要的页面重定向到站点的404页面。
#This allows you to redirect /2016/03/16/ to /404/ (assuming the path to your 404 page is /404/ Redirect 301 /2016/03/16/ http://domain.com/404/
https://stackoverflow.com/questions/39484947
复制相似问题