最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Pages in wp-admin is not found 404

programmeradmin0浏览0评论

I moved my website from localhost to web server. The website works fine. When I explore any page the urls on the website(front-end) are working fine so permalinks are not a problem. Issue is when I click on "Pages" inside url/wp-admin it shows me a not found 404 page.

I figured out the issue is when I click on the pages the url should be:

/wp-admin/edit.php?post_type=page

but when I click the pages it takes me to

/wp-admin/edit?post_type=page

the url automatically removes .php from /wp-admin/edit.php?post_type=page

Even when I manually add .php after edit it is deleted automatically.

I've commented/deleted everything in my htaccess file still it automatically removes .php from edit.php?post_type=page

All other pages are working fine Posts, Category, Media etc. When I click Posts the url it takes me to the following url which is working fine and in this case .php isn't removed automatically

wp-admin/edit.php

Things I've tried:

-Commenting everything in htaccess file.

-Deleting htaccess file.

-Uploading a fresh copy of my localhost wordpress website on server (It works fine on local host)

Summary:

When I click pages in wp-admin I get 404 not found. The reason is the url should be /wp-admin/edit.php?post_type=page but the .php from edit.php?... is automatically removed. All other links are working fine. Posts page url wp-admin/edit.php shows correctly and the .php is not being removed automatically. Anyway I can fix it generally or by changing htaccess file?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论