CI 1.7.3 Enable Query Strings |
[eluser]blasto333[/eluser]
I am talking to a credit card api and information is returned in the query string (so I have to enable it). When I do: http://HOST.com/PHP-Point-Of-Sale/index....ext=Credit card number is required. IT WORKS FINE (Notice 2 query string parameters) BUT WHEN I DO: http://HOST.com/PHP-Point-Of-Sale/index....ext=Credit card number is required. I GET a 404 error, why is this?
[eluser]web-johnny[/eluser]
[quote author="blasto333" date="1303103820"]I am talking to a credit card api and information is returned in the query string (so I have to enable it). When I do: http://HOST.com/PHP-Point-Of-Sale/index....ext=Credit card number is required. IT WORKS FINE (Notice 2 query string parameters) BUT WHEN I DO: http://HOST.com/PHP-Point-Of-Sale/index....ext=Credit card number is required. I GET a 404 error, why is this?[/quote] It's because you have the uri_protocol to AUTO .You have to change the Code: $config['uri_protocol'] = 'AUTO'; Usually is PATH_INFO
[eluser]blasto333[/eluser]
Could you explain/point me to the right location that explains URI protocol?
[eluser]web-johnny[/eluser]
[quote author="blasto333" date="1303159659"]Could you explain/point me to the right location that explains URI protocol?[/quote] It is at your application path at config folder , for example application\config\config.php or system\application\config\config.php (in line 43-44). I post my code of the config Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ^^ The last line show you where it is ^^
[eluser]blasto333[/eluser]
I guess I don't understand what is wrong with AUTO?
[eluser]web-johnny[/eluser]
[quote author="blasto333" date="1303160261"]I guess I don't understand what is wrong with AUTO?[/quote] I don't know what's wrong with that but it will solve your problems . Try it and you will see ;-) |
Welcome Guest, Not a member yet? Register Sign In |