Welcome Guest, Not a member yet? Register   Sign In
rewrite and comma problem
#7

[eluser]Tomasz Topa[/eluser]
[quote author="xwero" date="1189177165"]If Tomasz solution works i wonder what could be the reason for this behaviour.[/quote]


I needed URLs like this:
Code:
http://mydomainname.com/news/1,the-title-of-the-article-with-id-1.html

The variables in config.php and routes.php are set like this:

Quote:$config['permitted_uri_chars'] = 'a-z 0-9~%.,:_-';
$route['news/([0-9]+),([0-9a-z-]+)']="news/viewnews/$1";

And it works fine. However changing the "permitted_uri"chars" variable to any of these:
Quote:$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-,';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-\,';

results in the preg_match() error.


Messages In This Thread
rewrite and comma problem - by El Forum - 09-07-2007, 01:32 AM
rewrite and comma problem - by El Forum - 09-07-2007, 01:42 AM
rewrite and comma problem - by El Forum - 09-07-2007, 01:48 AM
rewrite and comma problem - by El Forum - 09-07-2007, 03:53 AM
rewrite and comma problem - by El Forum - 09-07-2007, 03:57 AM
rewrite and comma problem - by El Forum - 09-07-2007, 03:59 AM
rewrite and comma problem - by El Forum - 09-07-2007, 04:34 AM
rewrite and comma problem - by El Forum - 09-07-2007, 04:41 AM
rewrite and comma problem - by El Forum - 09-07-2007, 06:24 AM
rewrite and comma problem - by El Forum - 09-09-2007, 02:47 PM
rewrite and comma problem - by El Forum - 12-26-2007, 10:00 AM
rewrite and comma problem - by El Forum - 02-08-2011, 02:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB