added on Jan 10, 2008 by
Hello!
My web server is Apache and i created a .htaccess file with the following contents:
AddType application/x-httpd-php .php .html
Placed this file in the folder of my website but it don't working. Error 500.
Please help me, what can i do
Thankyou
added on Jan 10, 2008 by
hi,
since you get the 500 error, it could be that you're not allowed to override those things in the .htaccess? Is the
server your own, or a virtual host?
If you're adding the links to the index file, perhaps try renaming it from index.html to index.php and 301 redirect the
.html version to the .php to get the SEs to recognize the .php version.
added on Jan 10, 2008 by
hi,
meby, icreated not corrected .htaccess file? it my own server, but i don't want renaming my infex.html to index.php, if
can you created this .htaccess for me, please help and send it please me to my email.
P.S. Sorry for my english and thankyu!
added on Jan 11, 2008 by
Goodmorning,
the .htaccess contents you posted seems right on, I would guess that Apache is not setup to let you use the AddType
directive. Please check your httpd.conf and add
AllowOverride FileInfo
inside a <Directory></Directory> that matches your setup.
If it's still not working, I would have to have a look at the error log entry from when you get the 500 error.
- v0id
added on Jan 11, 2008 by
Hi, v0id!
Please contact me
icq : 194068142 Sansli
Thankyou