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
Re: [PHP] weird problem with index page
Well, I managed to part fix the problem, now I have a problem where there is a page that all it does is redirect to another page, it wont redirect unless I hit the refresh button. When I go to index.php it redirects to login.php, this is an old page that I just added a header("Location: blah); to so it would go to the new page. now it seems to jsut show a blank page instead of doing the second redirect, if I hit refresh on the blank page it will redirect correctly. I wondered if there was some restriction somewhere on only allowing 1 redirect where this page needs to be able to do more than one? is htis something that would be in the httpd.conf or php.ini file? Thanks! Loll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] weird problem with index page
Hi, I am not sure if this is a PHP or Apache problem, but I am hoping someone can tellme what is wrong. When I go to www.domain.com on my server it shows the page as text instead of parsing the php code. If I go to www.domain.com/index.php (same page) it runs as it should. 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