Hi Robin,
I can get the error whether logged in or out, but not every time. I’ll PM you the link.
Unfortunately the client is reluctant to put aside the budget to upgrade, though we’ve suggested it a few times (ironically we’ve spent quite a few hours doing custom stuff that later versions do out-of-the-box).
They handled the rewrite project themselves, using Helicontech ISAPI Rewrite, along with the usual EE tweaks in the CP. The way they’ve done it, every URL goes through EE unless they specifically exclude it. Here are the relevant bits of the ISAPI rewrite file, should be interesting to quite a few people I would think:
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.42
# 301 Redirect non-www URLs to www version
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) <a href="http://www.domain.com$1">http://www.domain.com$1</a> [R=301,L]
# Except for URLS with css or weblog/authors&mbr;= (author pages) in the URL, 301 redirect the URL, removing the index.php part
RewriteCond %{REQUEST_URI} !system
RewriteCond %{QUERY_STRING} !weblog/authors&mbr;=
RewriteCond %{QUERY_STRING} !css
RewriteCond %{QUERY_STRING} !search_query
RewriteCond %{QUERY_STRING} !search=1
RewriteCond %{QUERY_STRING} (.*)
RewriteRule /index.php(.*) <a href="http://www.domain.com%1">http://www.domain.com%1</a>? [R=301,L]
# Add trailing slash to URL if one doesn't exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ <a href="http://www.domain.com$1/">http://www.domain.com$1/</a> [R=301,L]
[snip]
... rewrite duplicate content urls after site reorganisation…
[/snip]
# Rewrite URL for background use by EE (exceptions added for folders and CSS file calls through index.php)
RewriteCond %{REQUEST_URI} !.*\.(html)
RewriteCond $1 !^/(images|system|js|index\.php|sitemap\.xml|robots\.txt) [NC]
RewriteRule ^(.*)$ /index.php?$1 [I,L]
Thanks for taking a look,
smithy.