I have an .htaccess file in my directory where I'd like to change about-us.php to /about-us/ and I have used mod_mod_rewrite generator to do so however either I get 500 internal server errors or it doesn't work. So I checked my apache and its already enabled as default - I also have confirmed this is enabled using
/usr/local/apache/bin/httpd -l | grep rewrite
and I get
mod_rewrite.c
but this is it, my server is centos 6
I really don't know what else I need to do, do you guys have any idea? code below is another try but even this doesn't work fine
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)/$ /$1.php
Many thanks in advance