[HELP] .htaccess (keeps returning 500 even though it's active)

bodge

ayy lmao
Oct 31, 2011
406
54
Hello Devbest, I am having trouble with .htaccess
Even though it is ON, I can use it to do my .htaccess and .htpasswd with no errors (I do this via Webmin).
But, I'm trying to hide my file extensions and my web server is saying "NO".

I've tried these codes and none of them work :L

Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

Code:
RewriteRule ^home$ home.php [L]

Any help?

My Apache version is: 2.2.22




EDIT: I have fixed the code returning an error 500, had to run something in Terminal, but the .PHP extension doesn't seem to work still? Says "/home/login" doesn't exist however I have to use .php :S
 
Last edited:

bodge

ayy lmao
Oct 31, 2011
406
54
EDIT: I have fixed the code returning an error 500, had to run something in Terminal, but the .PHP extension doesn't seem to work still? Says "/home/login" doesn't exist however I have to use .php :S
 

Users who are viewing this thread

Top