I have code in .htaccess file

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^([^.]+)$ $1.php [NC,L]

My directory like..


And i have putten .htaccess file in www/careers directory

But it's not working..

i think it's not working only at localhost...

Please help me my thing is true or i have done some mistake in code...or directory??

1 Answer 1


99.9% of the time, you'll only need one copy of ExpressionEngine's index.php file, and it should live in the webroot:


Your .htaccess file with those mod_rewrite rules should be placed in the same directory as index.php:


Those mod_rewrite rules will work for all URLs that are children of that directory, including /careers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.