Permalinks problem |

I am using WordPress Version 5.5.1
My Permalinks is set to Custom Structure and using /%category%/%postname%/
When I create a new Post, the Permalink View Post correctly shows the required Permalink structure e.g. <mysite>/mycategory/myURLSlug

However, upon mousing over the View Post link (or previewing), the underlying URL uses the Plain Permalinks format of <site>/?p=7444

Things I have tried.
1. Change the Permalinks structure and save. Then change it back and save. Note the .htaccess files is updated and I do see the section in there as follows

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

2. I have tried disabling all plugins. Result is the same.

3. Restarting Apache

Does anyone have a clue as to why the Permalinks is correct in View Post but the underlying url is still showing the page content version?

Source link