kambiz_marta - 10:00 pm on Mar 13, 2013 (gmt 0)
Thanks for your answer.
Localhost means my computer: 127.0.0.1 I've installed EasyPHP 5.4.6, Apache 2.4.2
Lines like this
127.0.0.1 - - [13/Mar/2013:15:02:26 +0100] "GET /fincamps/pisos-casas HTTP/1.1" 404 1279
together with your first post make it sound as if the real site does some rewriting. You need to have the identical rewrites in place on your offline test site.
I've got it identical
fincamps/pisos-casas is the page sabadell/index.php with parameters, which is redirected in htaccess. It works in the server, but not in localhost
/fincamps 301 to /fincamps/ is legitimate IF the original request was a type-in AND "fincamps" is a real, physical directory. If both of those things are true, it is simply mod_dir doing its job. BUT if either of those things is not true, there is a problem. fincamps is physical directory
127.0.0.1 - - [13/Mar/2013:15:02:26 +0100] "GET /favicon.ico HTTP/1.1" 404 1129
Well, that one's easy ;) Your browser is asking for the favicon-- as browsers always do-- and you probably didn't bother to put a copy on your offline site. May as well include one, just so the browser can stop asking for it. Otherwise it will make a fresh request on every single page load. favicon.ico is in the root directory, I don't know why is asking for it. I've got exactly same files, same folders like in the server
is an absolutely horrendous pattern. Is this the kind of thing you were called in to fix?I don't understand what do you mean
/fincamps/ 302 to /fincamps/es followed by 301 to /fincamps/es/ cannot possibly be right. The first redirect is presumably triggered by something in the code that either detects system language or reads a cookie. But it should go straight to /es/ whether or not that is a real, physical directory. Sure you are right, but this is what access.log contains.
Thanks very much for your help