URL rewrites not working
-
Hi, I have a new site I’m building out. Server is a Digital Ocean Ubuntu 18.04 running Apache 2.4 and PHP 7.2. Newest WordPress, 5.2.1 and the 2019 theme with only one plugin (Kadence blocks) installed. I turned on pretty permalinks and they are not working (get a 404 trying to visit posts/pages). The site still works fine with plain URLs.
Site health check reports:
The REST API call gave the following unexpected result: (404) Not Found The requested URL /wp-json/wp/v2/types/post was not found on this server.
As far as I can tell my .htaccess file looks fine. I set chmod 666 on it and WP automatically adds/removes rewrite rules when I change permalinks to pretty/plain and save from the Settings->Permalinks page.
I have pretty permalinks on now and see the following in .htaccess:
# 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
For now I will just use plain URLs, but if anyone has any other ideas of things to try I’m all ears!
The page I need help with: [log in to see the link]
- The topic ‘URL rewrites not working’ is closed to new replies.