Forum Moderators: phranque
1. in my log today, I see that there is a http code 304 that appeared for a folder called "/?q=ferries" which is totally unknowned to me. This then led my homepage to link to this folder. As such if I type the URL wwww.mydomainname.com/?q=ferries in the browser, this opens my homepage but I have no such URL so how can it be possible ?
2. I see a permanent redirect 301 code in my Awstats but I have never set up any 301 so again how can this be possible ?
I have searched the internet for answers but nothing so far and I am getting a bit concerned. Could anyone help me please?
Many thanks in advance.
2. it is possible to generate a 301 response in a script (cgi, php, asp, etc) or using a server directive (in a .htaccess file or the server config file for apache) - have you checked all possible locations for the source of the 301 response?
it doesn't really change my answer, however.
the 304 would normally be the response supplied to a conditional request where cacheing is involved.
if the url with a query string is not valid, you should not respond with a 304 which means "go ahead, keep using the cached version of this resource".
instead the correct response would be a 404 Not Found which means "don't have or don't know what you are looking for" or a 301 Moved Permanently which means "despite your request what you really want is this url so please request that instead".