Amoeba
Amoeba

Reputation: 75

Dots in URLs replaced by underscore

I have a little problem on Apache with Rewrite on. My rewrite is like that (for an old CodeIgniter) :

RewriteCond $1 !(index\.php|index\.html)
RewriteRule ^(.*)$ index.php?/$1%{QUERY_STRING} [QSA]

if I pass this kind of URL :

http://server.fr/seg1/seg2/email/[email protected]/other/1.3

And if I log the $_GET vars at the beginning of my index.php, I have this:

array(2) {
  ["email"]=>
  string(10) "aaa@bbb_fr"
  ["other"]=>
  string(3) "1_3"
}

Don't understand why all dots are replaced... Any ideas welcome !

Thanks

Upvotes: 0

Views: 1386

Answers (1)

raina77ow
raina77ow

Reputation: 106365

Replace

$config['uri_protocol']  = 'AUTO'; 

... to ...

$config['uri_protocol']  = 'REQUEST_URI';

in config.php file.

Upvotes: 1

Related Questions