Pages in wp-admin is not found 404

by Moiz Nadeem   Last Updated July 15, 2019 13:08 PM

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:


but when I click the pages it takes me to


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

enter image description here

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


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)


enter image description here

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?

Related Questions

wp-login not found - All usual solutions not working

Updated January 09, 2019 12:08 PM

Wordpress keeps deleting .htaccess file

Updated December 14, 2017 01:08 AM