coopster

msg:4275914 | 2:38 pm on Mar 3, 2011 (gmt 0) |
Sounds like the resource (file) exists and is not a directory so the trailing slash [httpd.apache.org] issue is unlikely. Next I would check on or both of these directives: AcceptPathInfo [httpd.apache.org] MultiViews [httpd.apache.org]
|
tedster

msg:4276115 | 7:50 pm on Mar 3, 2011 (gmt 0) |
This does sound like at least a two part problem. One is the server side part, as coopster pointed out. The other is the HTML part: | As a result, all internal links on this page become altered |
| This you can address by not using page-relative URLs in your internal linking. A quick fix for that can be to use the <base> element in the page's head area: 4. Path information: the BASE element [w3.org]
|
g1smd

msg:4276126 | 8:00 pm on Mar 3, 2011 (gmt 0) |
Begin internal links with a slash or add the base tag. There's a serious flaw in the site's coding. If you are using RewriteRule you will need to check this code carefully. You also need to check how your script checks if URLs are valid and generates a custom 404 error message for those that are not.
|
coopster

msg:4276300 | 11:17 pm on Mar 3, 2011 (gmt 0) |
| You also need to check how your script checks if URLs are valid and generates a custom 404 error message for those that are not. |
| Sage advice. I often forget to mention this point and it is crucial.
|
vivalasvegas

msg:4277770 | 1:52 pm on Mar 7, 2011 (gmt 0) |
Thank you for the helpful replies. I'm still having this issue. While your answers give good advice I must decipher them since I am not a very techy person and I have little understanding of all these things, especially when it comes to server settings. One thing I noticed is that when I remove the php handler for .html documents in my .htaccess file I no longer see this error and adding a trailing slash to .html pages results in a 404 page. However, in this case my .php scripts stop working (scripts integrated into .html pages, retrieving data from a mysql DB). This is the php handler I am using: php_flag allow_url_fopen on AddType application/x-httpd-php .html .php .htm .shtml
|
|