Hi,

I use an apache rewrite rule on the server to force a trailing slash to be
appended if the requested file is a really a directory:

Inside virtual host & <Directory ...>:

[snip]
<IfModule mod_rewrite.c>
RewriteEngine  on
RewriteBase  /
RewriteCond  %{REQUEST_FILENAME}  -d  #is requested file a directory?
RewriteRule  ^(.+[^/])$  $1/  [L,R]   #append trailing slash  redirect 

</IfModule>
[snip]

So:
www.mystite.com/dir

would become:
www.mystite.com/dir/

... hence the the index file will be served

Regards,

Ulrik


-----Original Message-----
From: loll [mailto:[EMAIL PROTECTED] 
Sent: Monday, 17 May 2004 3:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: weird problem with index page

Hi,

Thanks for th einfo, after beating myself all day over it, I have 
determined that it only seesm to be an issue when using Internet Explorer, 
using opera or mozilla it seems to work as it should, so I really dont 
understand now.

Checked the apache setting you meantioned and it seems to already be set to 
OFF.

Anyway, with all these troubles I thought perhaps I would try upgrading php 
by creating a CGI version (the server has mod 4.2.2 installed). I managed 
to get the binary to create correctly, I can use it from the command line 
(tested it by using ./php.cgi phpinfo.php) but when I try to get it to work 
from the browser , I end up at best with a error 500. *sigh* Can't seem to 
find anythign that works can I?






At 12:12 AM 5/17/2004, you wrote:
>Try adding a trailing slash to the URL, and seeing if it works. If so, 
>then try adding the apache configuration directive:
>
>UseCanonicalName off
>
>In either httpd.conf or an .htaccess file, and try accessing without the 
>trailing slash. I had a similar issue and adding that fixed it.
>
>Andy
>
>Loll wrote:
>>[snip]if I go to www.domain.com/subdir it sya s page not found even 
>>though there is a index.php file in that directory. I am at a loss as to 
>>what is wrong. index.php is listed inthe directoryindex for apache so I 
>>dont understand why it is doing all this.
>>If anyone can help me it would be appreciated.
>>Thanks
>>Loll
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to