Welcome Guest, Not a member yet? Register   Sign In
What are the chars that the url can include?
#8

[eluser]Aken[/eluser]
Because you're using (:any). That means any characters, including /. If you don't want to include another slash, you have to specify only the characters that you're going to use in the segment for your titles. Something like this will use only letters, numbers and the dash (-) char.

Code:
$route['news/([a-zA-Z0-9\-]+)'] = 'news_ci/article/show/$1';


Messages In This Thread
What are the chars that the url can include? - by El Forum - 08-13-2012, 01:23 PM
What are the chars that the url can include? - by El Forum - 08-13-2012, 05:07 PM
What are the chars that the url can include? - by El Forum - 08-15-2012, 03:28 PM
What are the chars that the url can include? - by El Forum - 08-15-2012, 05:01 PM
What are the chars that the url can include? - by El Forum - 08-15-2012, 05:20 PM
What are the chars that the url can include? - by El Forum - 08-15-2012, 08:17 PM
What are the chars that the url can include? - by El Forum - 08-15-2012, 09:18 PM
What are the chars that the url can include? - by El Forum - 08-15-2012, 09:40 PM
What are the chars that the url can include? - by El Forum - 08-15-2012, 09:58 PM
What are the chars that the url can include? - by El Forum - 08-15-2012, 10:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB