wordpress - Ngrok - Not loading wordpress posts after publish
问题描述
I am using ngrok some problems occures :-
- My wp main page not loading.
- My stylesheets not loading.
- Not able to access my wp dashboad
But solved all these three problems.
So whats the problem now.
I am not able to load the post after publishing the post it gives me.
Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
I have checked the link also it is correct
Published url ( Not works )
The link is http://myurl.ngrok.io/wp_blog/2018/08/24/test-post/
Draft url ( Works )
The link is http://myurl.ngrok.io/wp_blog/?p=(postNumber)&preview=true
解决方案
It is the permalinks problem.
Change the permalinks from "default" to "post type"
推荐阅读
- javascript - 即使对于反应中的状态 200,API 也没有获取任何响应(Fetch API)
- javascript - 为什么 getExpectedRate() 返回 0?
- ios - 在 Xcode 13 UIButton setBackgroundImage 中不起作用
- go - 如何使用火星代理添加动态标头?
- python - 如何让我的程序知道用户输入的列表是字符串还是数字?
- flutter - 为什么Future返回类型的函数可以返回一个对象而不是Future类型?
- javascript - 在反应中使用 process.env
- click - Javascript AddEventListener 无法识别事件
- javascript - 打开图层:十进制格式的逗号坐标
- html - 当有换行符时,MathJax 2.7.7 无法在网页上正确居中公式