In code igniter I need to replace illegal characters of 4th segment with ‘-‘, for example
http://example.com/groups/index/26/this-is-a-test
works fine and
http://example.com/groups/index/26/this-is-a-test!!!
this not working and show ‘The URI you submitted has disallowed characters.” error message. I need to replace ! or any other disallowed characters with ‘-‘. Can you please give me a solution for this?
You could use the URI class, get the current URI string, remove the illegal chars, then redirect to the new string.
http://codeigniter.com/user_guide/libraries/uri.html
But I dont understand why people are going to the wrong URL in the first place? That seems like a bad idea in the first place?