Why is there an error in 404 posts after migrating wordpress?

  • 0
    In general, I transferred the project to a new hosting (VDS) and a problem arose: the CNC does not work ...
    Here's a site that doesn't actually work: recensor.ru
    I suspect this is due to some kind of incorrect web server settings ...

    What I have done already:
    1) rewrote permalinks in the admin panel (checked htaccess is updated)
    2) a2enmod rewrite entered into SSH, Apache rebooted.
    3) Access rights to the folder are set for the user / group www-data
    4) To be more sure about any reboots, I rebooted the whole car.

    I'll add that it was: prntscr.com/8r0x4g (apache2 plugins)
    Ubuntu Anonymous, Nov 19, 2020

  • 2 Answers
  • 0
    mod_rewrite needs

  • 0
    Try to go to the admin panel in Permalinks and click Save, sometimes it helps.

    Alternatively, Apache may be incorrectly configured: try adding this to the Apache config for the folder with the site:
    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all

    And do not forget to restart the apache after that: sudo service apache2 restart

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!