How to pass slash / in an URL?
They are generated in PHP:
<a href="/define/<?php echo rawurlencode($abbreviation['title'])?>/">
<strong><?php echo $abbreviation['title']?></strong>
</a> And the URL requests such as:
What does DA&E stand for? - 1 Acronym Definitions & Meanings
Would first be fed to rawurldecode():
$acronym = rawurldecode('DA%26E'); // $acronym would be 'DA&E'.
While DA&E is all right, DA/C is not. Try this URL http://abbreviations.wordcrow.com/define/DA%2FC/ and you would end up with Abbreviations & Acronyms Dictionary - Find meanings and definitions of acronyms and abbreviations. which is an error page.
I can extend more code to recognize /define/DA/C/ but it's just weird and non-sensible. I tried both Chrome and Firefox and they all automatically convert DA%2FC to DA/C. But with DA%26E, they don't.
What am I doing wrong? Ain't that / already encoded into '%2F'?? Really weird. Any help would be appreciated!
-
Cash Money Hosting -
Thanks
{{ DiscussionBoard.errors[3911153].message }} -