Forum Moderators: phranque
However, we run another server as well and I today noticed that Googlebot had requested a page like this:
h**p://www.abc.co.uk/qwe-widget.php/rty-other.php
This doesn't give a 404, instead the page views as if it in a sub birectory (the CSS all gets screwed because the site uses relative paths)
I tried turning MultiViews off but it didn't work this time. It does seem slightly different though, the problem I had on the other server was more like this:
h**p://www.abc.co.uk/qwe-widget/rty-other/sdfg/sdfg/sdf/sb.php
Previously the real file name was specified in the URL as a directory (the file extension was chopped off). In the this new problem the file name is in their in full.
I have used PHP to script a temporary solution but I can't figure out how to sort this at the apache level.
I thought it mightbe to do AcceptPathInfo, but that didn't seem to fix it either. Anyone got any suggestions?
Many thanks
thanks for dropping by to help (again!). I had wondered if it could be that but all my mod_rewrite is done httpd.conf in virtual host directives. And its pretty simeple stuff:
RewriteCond %{HTTP_HOST}!^www\.abc\.co\.uk
RewriteRule ^(.*)$ ht*p://www.abc.co.uk$1 [R=301,L]
I even tried :
RewriteEngine Off
But I got the same problem. Also I get the problem on all sites hosted on this server.
Anything else I could try?
Thanks
Do your "published" URLs actually point to real (individual) php files, or do you rewrite them to a dynamic php page that generates appropriate content for each request?
If you are rewriting various URLs to a php script, then I'd look for the problem in that rewrite. Maybe you are using some other mechanism to do this. Whatever the mechanism, it sounds like it's going wrong there.
Jim
You can also turn on rewrite logging in httpd.conf -- that may help you figure out how the path is getting modified.
Also check any Alias or ScriptAlias directives you may have... Anything that can affect how URLs are mapped into the filesystem.
Jim