Permalinks by pagepost name returning 404

All my content is currently setup as pages. I want to setup permalinks with page names. I read some posts online that sa

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

I was able to find the answer here:

I had to create a custom permalink with the following value:

/index.php/%postname%/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742251470a4409234.html

相关推荐

  • Permalinks by pagepost name returning 404

    All my content is currently setup as pages. I want to setup permalinks with page names. I read some posts online that sa

    1天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信