Skip to content

Tag: ubuntu

How redirect from /file.php to /file on nginx?

I’m currently hiding the .php extension from the urls on my nginx server with this configuration: This is working perfectly, but how can I make nginx not allow adding the .php extension?. In my example if you manually delete the .php it works but if you add it it remains permanent in the url. Answer To …

How to run PHP files properly on Ubuntu with Nginx?

I have “php” folder and also phpmyadmin folder in /var/www/html direction, and when I’m trying to open localhost/phpmyadmin/index.php or localhost/php/index.php in browser, I get the following error: and also browser suggests me to download file. I installed mysql, php 7.4, nginx and phpmyad…