Odstranění .php z URL.
2. 2. 2026
Tento návod se vztahuje k balíčku "Web Hosting" se softwarem "Nginx + PHP" na hostingu Helkor.eu
- Otevřete soubor
/nginx/conf.d/default.conf - Najděte v souboru text text:
location / { try_files $uri $uri/ /index.php?$query_string; } - Označte ho a nahraďte následujícím textem:
location / { try_files $uri $uri/ @php; } location @php { rewrite ^/(.*)$ /$1.php last; }
Napsal/a: Negix
