0

I have a url:

"http://example.com/some-var-[2009]-to-[2014]"

When I hit the same I get:

enter image description here

How do I fix the same ? I want to allow square brackets [2009] & [2014] in my url.

informer
  • 821
  • 6
  • 18

2 Answers2

0

Put this code in your config file in where permitted declared..

]a-z 0-9~%.:[_\-,;&()@!
Md.Sukel Ali
  • 2,987
  • 5
  • 22
  • 34
0

You can put your square bracket or other special characters after / those you want in URL like /[ or /] /@ Set in codeigniter_project/application/config/config.php configure this variable:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_/-@/=/[/]';

pati51
  • 73
  • 6