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

permalinks - Wordpress 404 in development area

programmeradmin0浏览0评论

I have a live WP site, which I have taken a copy of and put onto a new server for testing / development.

Once I put the website on the new area I updated the site url and home url in the database, ensured the .htaccess file was showing correctly and everything in the wp-config was correct.

When I try and access a page which is not the Home Page or wp-admin area I get a 404 error.

I have tried resaving the permalinks, ensuring all urls in the database are the new servers ip's , and disabling each plugin one by one to see if there was any conflicts but nothing seems to work.

Is there something I am missing / any advice.

Thank you

I have a live WP site, which I have taken a copy of and put onto a new server for testing / development.

Once I put the website on the new area I updated the site url and home url in the database, ensured the .htaccess file was showing correctly and everything in the wp-config was correct.

When I try and access a page which is not the Home Page or wp-admin area I get a 404 error.

I have tried resaving the permalinks, ensuring all urls in the database are the new servers ip's , and disabling each plugin one by one to see if there was any conflicts but nothing seems to work.

Is there something I am missing / any advice.

Thank you

Share Improve this question asked Jan 22, 2021 at 10:04 JWilliamJWilliam 335 bronze badges 1
  • 2 Are .htaccess overrides and mod_rewrite enabled on the new server? – MrWhite Commented Jan 22, 2021 at 10:55
Add a comment  | 

1 Answer 1

Reset to default 1

As MrWhite mentioned above, mod_rewrite was not enabled on the new server. Enabled that and all is working fine now.

Thanks for your help

发布评论

评论列表(0)

  1. 暂无评论