![]() |
allow apostrophe in URL - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: allow apostrophe in URL (/showthread.php?tid=38171) |
allow apostrophe in URL - El Forum - 02-01-2011 [eluser]waxdaddy[/eluser] I need to allow apostrophe's in my URL's but i can't seem to get it working by adding it to the allowed list i tried this... Code: $config['permitted_uri_chars'] = 'a-z\' 0-9~%.:_=+-'; but no luck... any pointers as to what i need to do? Cheers allow apostrophe in URL - El Forum - 02-01-2011 [eluser]Evollution[/eluser] Code: $config['permitted_uri_chars'] = "a-z\' 0-9~%.:_=+-"; try now allow apostrophe in URL - El Forum - 02-01-2011 [eluser]John_Betong[/eluser] Quote:I need to allow apostrophe’s in my URL’s but i can’t seem to get it working by adding it to the allowed list I do not know the reasons for wanting the apostrophe in an URL but I think you are "opening a can of worms". Do you want your users and SEO Bots to use the apostrophe? I have gone to great lengths to ensure there are only alphabetical and numeric characters in myt URLs. Take a look at: Code: $this->load->helper('url'); Also take a look at ./config/route.php. You can trap any URL and route it a chosen controller. allow apostrophe in URL - El Forum - 02-02-2011 [eluser]waxdaddy[/eluser] Users might enter one and its also a legacy thing as the urls have to match the original urls... allow apostrophe in URL - El Forum - 02-02-2011 [eluser]waxdaddy[/eluser] [quote author="Evollution" date="1296607362"] Code: $config['permitted_uri_chars'] = "a-z\' 0-9~%.:_=+-"; try now[/quote] Already tried that, didn't make the slightest difference. |