If you're going to -1 this question, tell me how I can improve it, rather than just leaving it.
This is a dup with a few edits
I'm making an open-source piece of software, but my .htaccess needs a little tuning.
How do I allow a URL such as www.mydomain.net/forum/method/user//abc
and keep the //
when grabbing it in my PHP code?
I've looked here: allow slash in url .htaccess
But that was no help.
Here's what I have:
.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?/=$1 [NC,QSA,L,NE]
And:
geturl.php
$url = (isset($_GET['/']) ? $_GET['/'] : null);
die($url);
Output: account/signup/2/sskssks
URL: account/signup/2//sskssks
Expected output: account/signup/2//sskssks
Basically, something is removing/trimming the // and setting it to /.