How to remove the .php extension in the browser?

Basically I remixed the LAMP webpage, and added some links, here and there. The main page works perfectly, there is no index.php extension, but I created a new page, memes.php, and that one need to be typed out with “.php” in the browser. I just want to be able to see that page at .

Create a .htaccess file and add the following to it:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

that doesn’t work, the page keeps loading and loading…

Can you show me your logs?

I have no logs, except “no install needed”

Try adding a few chars to the glitch.json file, wait a second, then delete them.

still nope

Try renaming your file into index.php, Then move it to some folder, like memes.

Then try visit

I already tried that… And if I go to (with another / at the end, I get

You don't have permission to access this resource.

Apache/2.4.18 (Ubuntu) Server at Port 3000