I am fairly new to php and RewriteRules, I tried to make localhost/webapp/sign_up.php point to localhost/webapp/sign_up. This is my .htaccess code:
RewriteEngine On
RewriteRule ^sign_up/?$ sign_up.php
but when I go to localhost/webapp/sign_up it says:
Not Found
The requested URL /webapp/sign_up was not found on this server.
I am using apache2 (Ubuntu) by the way and I am sure rewrite_mod is enabled.
In case it helps, my .htaccess is under var/www/html/webapp