Welcome Guest, Not a member yet? Register   Sign In
periods in uri goes to underscore

I'm trying to pass something such as mt.-John in my uri and the period always get translated to an underscore (_). I have periods allowed in my config. I removed the ? from my htaccess file as suggested by some other thread and still nothing.

Any ideas?

Try setting
$config['uri_protocol']    = 'REQUEST_URI';
in config.php

and check out this thread:

Thanks, exactly what I needed.

The answer given might not work in all cases and right now I don't have the time to find out exactly why, but on my linux box, the setting I had to use was:

$config['uri_protocol'] = "QUERY_STRING";

as the REQUEST_URI option resulted in invalid charaters error:

The URI you submitted has disallowed characters.

I suspect that is because I am not using mod_rewrite and therefore the '?' char is invalid in that configuration, eg:

$config['index_page'] = "index.php?";

a URI such as 'http://mydomain.com/foo/foo/username/lee.crampton' now works (ie the '.' is not being transformed into an underscore).

Theme © iAndrew 2016 - Forum software by © MyBB