Errors 404 after changing Permalinks structure, REST API Response 404
-
Hello,
I configured own web page using WordPress 6.7.1 (It is running on Synology DS224+ with DSM7.2.2).
All pages were working OK when I kept default Permalinks structure = “Plain”.But If I change Permalink structure = “Post name”, I have a problems:
- my pages are not working (all getting error 404)
- WP => Tools => Site Healt => shows:
REST API Endpoint: https://pagename/wp-json/wp/v2/types/post?context=edit
REST API Response: (404) Not Found - https://pagename/wp-json gets error 404
- when I am trying add new page => publish, i receive error “Publishing failed. The response is not a valid JSON response.
I do not have any .htaccess file existing in wordpress directory (where wp-config.php or index.php are located).
I tried to save, change permalinks, resave, but no .htaccess file is created.
I tried to create manualy this file .htaccess with following content, but didn’t help:
# BEGIN WordPress
RewriteEngine On RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
# END WordPressI tried restarted WebStation with PHP and Apache and nothing help…
I was checking permissions on directory, but looks ok.
I also disabled all plugins in WP, but this didn’t help.
I tried to use “Redirection” plugin to fix 404 errors, but didn’t help.
I read a lot of forums, but did not find solution…Could you please help how to get working my page with different Permalinks, not with “Plain”. (Is working with “Plain”).
The topic ‘Errors 404 after changing Permalinks structure, REST API Response 404’ is closed to new replies.