Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
server returns 200 OK code for non-existent page
#1
Odd one - checking my header responses from my GS3.0 site, I get a 200 response to a non-existent URL. that can't be right can it? i've checked and most mentions of this problem date back to v2, and appeared to have been fixed.

i have a modified install of the news-manager plugin if that's a factor.

my installation is in a sub-directory called cms with an htaccess rule to remove that directory from the path, and another to redirect the root home page to a specific page:
Code:
# Remove CMS from url
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_URI} =/
RewriteRule ^(.*)$ /cms/$1 [L]

RedirectMatch temp ^/$ /projects/

the site url is [EDIT] and a non-existent path could be perhaps /jabberwocky/ or /cms/jabberwocky/. both respond as 200.

any thoughts on what i need to try to fix this? thanks...
Reply
#2
a ha - found my own problem. in the course of debugging some strange CSS, i'd changed the page title of the 404 page from 404 to fourohfour, which meant the function in index.php didn't recognise when it was an error page. all fixed now, i think. thanks.
Reply




Users browsing this thread: 1 Guest(s)