ILYAS415 Posted August 11, 2007 Share Posted August 11, 2007 Okay i didnt no where else to post this so i posted it here. Whats happening is i have a file called: index.html and ive got a code in my .htaccess folder allowing me to force a php extension onto a file with no extension. Now the problem is that when i change the file name to Index and try to visit the page. It always takes me to a 500 internal server error or something like that. Please take a look... www.ragingmortals.com/ilyastest/index.html <--- html extension www.ragingmortals.com/ilyastest/Index <-- no extension Also the reason i think its a server error is because it only happens in this folder plus .php files also dont work (it only appears to be to this file). Ive checked through the file permissions and everything and it all seems okay to me. Any suggestions? Thanks Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 11, 2007 Share Posted August 11, 2007 Look in Apaches error log. The error will be logged in there. Quote Link to comment Share on other sites More sharing options...
ILYAS415 Posted August 12, 2007 Author Share Posted August 12, 2007 okay i dont think i no wat this means but i think it says theres something wrong with the head tags? heres the stuff from the error log: Premature end of script headers: /home/------/public_html/------/Index I just hid the username and folder names to hide the full path Quote Link to comment Share on other sites More sharing options...
ILYAS415 Posted August 15, 2007 Author Share Posted August 15, 2007 help with fixing above error? ^^^ () Quote Link to comment Share on other sites More sharing options...
uhmcastillo Posted August 15, 2007 Share Posted August 15, 2007 In the server config file (httpd.conf) there's a section that defines file types with lines like: AddType text/html .shtml Well, your server is confused about that type that files is, as it has not extension to match to. Now, you could try something crazy like AddType text/html * but I wouldn't recommend it. I have no idea what security/stability issues that would produce. If you use the MultiViews option, it may get you the same functionality, but it has it's own issues as well. Quote Link to comment Share on other sites More sharing options...
ILYAS415 Posted August 18, 2007 Author Share Posted August 18, 2007 kk thnx. I did actually try doing that in my script. I guess ill stick to the ordinary .php extension Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.