I am trying to remove .php extension from the URLs on my site. The .htaccess file I am using works on localhost, but when I upload it to server, it doesn't work.
Server has PHP4 and PHP5 but the default is PHP4, therefore I am using an extra piece of code to make PHP5 the default handler. Here is the .htaccess file:
ok try to ckeck if the module is loadet...
use the phpinfo() funktion and than
under Apache->Loaded Modules... there must be a entry "mod_rewrite".
When it´s not loadet try to load it with "LoadModule rewrite_module modules/mod_rewrite.so" in youre htaccess file
element wrote:ok try to ckeck if the module is loadet...
use the phpinfo() funktion and than
under Apache->Loaded Modules... there must be a entry "mod_rewrite".
When it´s not loadet try to load it with "LoadModule rewrite_module modules/mod_rewrite.so" in youre htaccess file
You are right, mod_rewrite is not loaded on the server. I added the following line to my .htaccess but it gave an error 500.
LoadModule rewrite_module modules/mod_rewrite.so
I guess I will have to contact the server provider.