I have the following routing options enabled on my .htaccess file. I want to route everything to the index.php file, yet am expriencing a challenge, because I have a foward slash - '/' being dropped in the process of routing. I need it for me to be able to identify unprovided/empty parameters at URL splitting level.
Options -Multiviews
RewriteEngine On
RewriteBase /example/public/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
A request like:
localhost/example/public/controller/method/var1/var2//var4
*will be routed as:*
localhost/example/public/controller/method/var1/var2/var4
*An empty var3 was dropped*
I will appreciate that support. Thank you.