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

[eluser]Leo78[/eluser]
[quote author="Aken" date="1345087048"]Has nothing to do with your .htaccess - it's all on your routes and application.

$route['news/(:any)'] needs to come last, after the search routes. Again, MOST SPECIFIC routes FIRST, then in decreasing order of specificity.[/quote]

I know, that what I've done. this is the full route:

Code:
// Tag, $tag, $page
$route['news/tag/(:any)/(:num)'] = 'news_ci/sorting/tag/$1/$2';
$route['news/tag/(:any)'] = 'news_ci/sorting/tag/$1/1';

// Search, $query, $page
$route['news/search/(:any)/(:num)'] = 'news_ci/sorting/search/$1/$2';
$route['news/search/(:any)'] = 'news_ci/sorting/search/$1/1';

// Archives, $year, $month, $page
$route['news/archives/(:num)/(:num)/(:num)'] = 'news_ci/sorting/archives/$1/$2/$3';
$route['news/archives/(:num)/(:num)'] = 'news_ci/sorting/archives/$1/$2/1';

// Article page
$route['news/(:any)'] = 'news_ci/article/show/$1';

// Homepage, $page
$route['news/(:num)'] = 'news_ci/sorting/newest/$1';
$route['news'] = 'news_ci/sorting/newest/1';

Again, when I enter to domain.com/news/article-name/bla/blu/ it recognizes that it should take 'article-name' as the parameter, but why doesn't it display error 404 because of the continue of the address? very strange for me. the address should be just domain.com/news/article-name/ I don't wanna the continue and don't know how to prevent it.


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