server removes duplicate slashes
server removes duplicate slashes from url, if i try to get http://mysite.com/a//b/
with .htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_F开发者_Go百科ILENAME} !-d
RewriteRule ^(.*)$ /index.php?r=$1 [L]
string that comes to php script is "a/b/" but expected "a//b/" how can i disable removing slashes from url?
You're talkin about the Path part of an URL/URI here. A path is by definition something like
path/to/file
- there is no such thing as a "//", since that's an invalid.
See http://www.ietf.org/rfc/rfc1738.txt section 3.3. HTTP:
Within the and components, "/", ";", "?" are reserved. The "/" character may be used within HTTP to designate a hierarchical structure.
There are no paths with a//b.
精彩评论