admin管理员组文章数量:1327966
All my content is currently setup as pages. I want to setup permalinks with page names. I read some posts online that said choosing %postname% path should render the content. But this does not work. When I access a page, I can see that the link is being updated with the page name, but it returns a 404.
I checked the .htaccess file and httpd.conf. mod_rewrite is loaded and access is setup with the right permissions.
My site is being hosted on ec2 aws.
Update: I just created a post and tested permalinks with it, the post also returns a 404.
All my content is currently setup as pages. I want to setup permalinks with page names. I read some posts online that said choosing %postname% path should render the content. But this does not work. When I access a page, I can see that the link is being updated with the page name, but it returns a 404.
I checked the .htaccess file and httpd.conf. mod_rewrite is loaded and access is setup with the right permissions.
My site is being hosted on ec2 aws.
Update: I just created a post and tested permalinks with it, the post also returns a 404.
Share Improve this question asked Jul 4, 2020 at 20:15 sotnsotn 1311 silver badge5 bronze badges1 Answer
Reset to default 1I was able to find the answer here:
I had to create a custom permalink with the following value:
/index.php/%postname%/
本文标签: Permalinks by pagepost name returning 404
版权声明:本文标题:Permalinks by pagepost name returning 404 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742251470a2440842.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论