I'm using a single index.php using switch...
My .htaccess
is currently:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ index.php?page=$1 [NC,L]
Usually I would settle for this option but it will just end up in conflicts down the track with other stuff how can I replicate this in php taking it off Apache.
By the file format above the https://example.com/index.php?page=about
turns each case into https://example.com/about
.
I can't find a simple guidance and how to achieve this in PHP and I know it is possible.