bramley - 9:57 am on Dec 6, 2011 (gmt 0)
Thanks again guys.
I have a copy index.php now (index8.php) that is the same but simple writes out any headers it would do and final address, if any; plus whatever happened in htaccess. So I am able to check any url to make sure the action is correct.
Originally I got into a mess because of a broken SEF engine and wrong base-path. Then on top of that changed a few times how the url's were formed (adding title to it).
The new system is mostly to correct all these errors - some 40+ checks that need include DB queries at times. But it seems to be ok now at last (till next time WMT updates ;) ). (Pretty much all the wierd URLS and old addresses exist only in Google's DB and not on my site or other sites.)
I had mistakenly added the 301 header to the SEF redirect as well as the corrections for past errors.
Hopefully in time I can take down most of this (perhaps a year or so).