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 https://subdomain.glitch.me/memes .
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 https://yoursite.com/memes
I already tried that… And if I go to site.com/memes/ (with another / at the end, I get
Forbidden
You don't have permission to access this resource.
Apache/2.4.18 (Ubuntu) Server at achieved-tender-pocket.glitch.me Port 3000
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.