Welcome Guest, Not a member yet? Register   Sign In
Using codeigniter in QUERY_STRING mode with php fast CGI
#1
Rainbow 

Hello,

I need to use codeigniter in QUERY_STRING mod ($config['uri_protocol'] = 'QUERY_STRING') because of my hosting.
Indeed, my hosting use php fastcgi mod.

So, on my config file I have this :

PHP Code:
$config['uri_protocol'] = 'QUERY_STRING';
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE

In my htaccess I have this :

Code:
RewriteRule ^(.*)$ index.php?/$1 [L]

My rules and my website work fine but, I need also to use some query string in my urls.
Because of using this rule :

Code:
RewriteRule ^(.*)$ index.php?/$1 [L]

When I have a page url like this : test.html?data=dog

$_GET is empty... I can't access to $_GET['data']

Do you have any solution for me ?


Thank you.
Reply


Messages In This Thread
Using codeigniter in QUERY_STRING mode with php fast CGI - by peter - 03-19-2015, 03:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB