The site is hosted with 1&1 and yesterday they added a ssl cert to the site.
The site automatically updated to 4.7 overnight.
The main pages are all working, and permalinks to pages are also working fine,
which I thing suggest the htaccess is correct
# AddType x-mapp-php5 .php
# AddHandler x-mapp-php5 .php
# 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
What is very strange is that the Pages permalinks work fine it's only the Posts ones which are wrong.
With Permalinks turned on for posts they all redirect back to the homepage.
The only rewrite filter I can find is add_filter( 'rewrite_rules_array', 'wc_fix_rewrite_rules' ); for WooCommerce.
I have the redirect plugin as well, but that has always worked fine for me and disabling it made no difference.
Can anyone suggest anything else to look at. Other than turning off each plugin in turn (the site has loads active). ..
In the end Could not solve the problem, so restored back prior to the updates.