Good day. I uploaded a file to my Ubuntu OS VPS (/var/www). The file's named 'theyu', without extensions. It's a php script, but for some reasons, I don't want to add the extension. I'd like to configure Apache to process a request such as say 10.382.234.32/theyu, where 10.382.234.32 is the vps' ip address, as 10.382.234.32/theyu.php
Is this possible? I'd really appreciate answers. I've tried editing the .htaccess file in /var/www using mod_rewrite, and the module is enabled in apache's configuration file. Allow OverWrite is also set to All at /etc/apache2/sites-available/default.
The command I used for rewriting in the .htaccess file was
RewriteRule ^(theyu)$ /$1.php [L]
But all I get when I try acessing the it is a page not found error, cos it's processing theyu as a directory.