I would like to remove .php extension for uri calls. In Linux pure machine, i can make this editing .htaccess and enable mod_rewrite. Can i make this in JElastic ?
Example: http://mydomain/company.php , i would like to called http://mydomain/company
I tried to edit .htaccess but doesn't work.
My question is how to detect this: /company.php and change it to /company directly Thanks
This should work:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L]