From c4134515001698ded42659c52a9813b387608aef Mon Sep 17 00:00:00 2001 From: William <54738571+WilliamAAK@users.noreply.github.com> Date: Mon, 14 Apr 2025 22:15:06 +0200 Subject: [PATCH] Docs: update --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a85112b..6349b8f 100644 --- a/README.md +++ b/README.md @@ -102,19 +102,17 @@ http_response_code(404);

Page not found!

``` -### Access directly: +The simplest way to access your routes is to put the file in your favorite folder and run it! E.g if you request `http://your.site/yourscript.php/your/route` the route will be automatically converted to `/your/route` -The simplest way to access your routes, put the file in your favorite folder and run it! E.g if you request `http://your.site/yourscript.php/your/route` the route will be automatically converted to `/your/route` - -### Rewrite requests: +# Rewrite requests Want to hide that pesky script name (e.g `index.php`) from the URL? -#### FrankenPHP: +### FrankenPHP: It is recommended that you use FrankenPHP the modern PHP app server. This behavior is enabled by default. -#### NGINX: +### NGINX: With PHP already installed and configured you may add this to the server block of your configuration to make requests that don't match a file on your server to be redirected to `index.php` @@ -124,7 +122,7 @@ location / { } ``` -#### Apache: +### Apache: Make sure that mod_rewrite is installed on Apache. On a unix system you can just do