Viewing 3 replies - 1 through 3 (of 3 total)
  • It looks to me as though there’s a problem with the .htaccess file on the staging site (as in, it’s either missing, or doesn’t contain the necessary WordPress rules), because the 404 page being displayed is coming directly from the server, rather than WordPress itself.

    So, I would suggest checking that file to make sure it’s writable, then visiting Settings → Permalinks and clicking the “Save Changes” button to try to force an update to it.

    Thread Starter uxiofraga_ntc

    (@uxiofraga_ntc)

    Thank for the tip, girlieworks

    This is my .htaccess (which has 770 permissions)

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Actually, you are right.

    After following your advice, I can make the posts load if I set the permalinks settings to default https://empezarenbolsa.com/?p=123

    I have them at “personalized structure” as https://empezarenbolsa.com /%category%/%postname%/

    This setting triggers the error. Any idea about how to solve it?

    Thank you very much for your help.

    Thread Starter uxiofraga_ntc

    (@uxiofraga_ntc)

    I was making a bad staging wordpress.

    The trick is:

    1.- Backup original site (files + database).

    2.- Restore this backup in another server with different URL.

    3.- Use the ‘WP Migrate DB’ plugin to generate an adapted database with the new URL and new path.

    4.- Update the new site with this exported adapted database.

    Hope this helps.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘posts/pages show 404 Not Found error on staging wp site’ is closed to new replies.