Welcome Guest, Not a member yet? Register   Sign In
Please consider querystring support in 2.x
#80

[eluser]amosmos[/eluser]
[quote author="clooner" date="1280767148"][quote author="amosmos" date="1280766672"]
Well then your advise is not good to me, I have to change the "uri_protocol" to "REQUEST_URI" because that's the only way it can work on GoDaddy hosting. By doing this, I can no longer use any query string variable at all, or else I get the "The URI you submitted has disallowed characters" error.

So again, WanWizard, can you help me out? I want to understand how I should make CI ignore the "?" character and what follows it, so that I can use your solution...

Thanks,
Amos[/quote]

What are you talking about? Simply change the config uri protocol to REQUEST_URI and add to the allowed characters ?=& which you will have to do now because you use request_uri and I am sure it will work that way.

config
Code:
// for this difficult host :P
$config['uri_protocol']    = "REQUEST_URI";
// add allowed types
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-?=&';
// leave it at disabled
$config['enable_query_strings'] = FALSE;

controller
Code:
//rebuild the get
parse_str($_SERVER['QUERY_STRING'],$_GET);

When I said that you don't need to change the config file I meant that it usually works out of the box Big Grin

This is the way to go! no ugly code changes or hooks and again usually this works by default![/quote]

I don't think you are fully reading the posts, which is OK because there are so many of them now and it can get a bit confusing.

1. CI doesn't work out of the box for me and I *have* to change the protocol to "REQUEST_URI". So the first step you are telling me to do I already do because I have to.

2. Now you say to add the "?=&" characters to the allowed characters. Well like I wrote before, I tried that but then if I do it this way CI thinks the entire thing is the controller (or method) name and don't understand it needs to ignore the "?" character and everything that follows it. That's why in this case I get a "404" error (and not the "The URI you submitted has disallowed characters" error).

So, like I said, I don't even get the page loaded at all.

WanWizard, hope I could hear your input on this...

Thanks


Messages In This Thread
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 12:52 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 01:55 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:45 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:48 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:57 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:23 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:47 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:59 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 04:07 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 07:46 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 08:09 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 08:41 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 09:26 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 11:45 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 03:36 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 04:57 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 05:00 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 08:58 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 09:39 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 09:49 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 03:32 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 11:50 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 12:11 PM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 09:14 PM
Please consider querystring support in 2.x - by El Forum - 07-02-2010, 02:13 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 03:49 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 09:11 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 10:28 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 11:29 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 01:16 PM
Please consider querystring support in 2.x - by El Forum - 07-24-2010, 02:14 AM
Please consider querystring support in 2.x - by El Forum - 07-24-2010, 02:24 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 02:47 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 03:33 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 03:41 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 11:11 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 11:42 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:32 PM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:39 PM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:58 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 01:47 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 04:36 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 06:19 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 07:03 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 10:25 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 12:26 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 12:56 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:09 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:28 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:36 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 03:54 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 10:34 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 11:31 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 03:09 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 04:51 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 04:52 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 06:10 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 08:35 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 08:41 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 10:20 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 02:35 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 05:57 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 06:07 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 07:34 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 09:40 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 10:08 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 07:08 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 09:50 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 11:50 PM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 01:27 AM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 01:42 AM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 03:00 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 04:37 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:01 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:06 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:17 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:28 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:31 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:39 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:45 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:54 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 06:03 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 06:15 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 09:04 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 10:57 AM
Please consider querystring support in 2.x - by El Forum - 08-03-2010, 10:56 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:09 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:19 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:40 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:06 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:08 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:18 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:37 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:39 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 03:51 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:01 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:55 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 12:50 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:55 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:47 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 06:00 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 06:55 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 07:08 PM
Please consider querystring support in 2.x - by El Forum - 08-07-2010, 12:04 AM
Please consider querystring support in 2.x - by El Forum - 08-07-2010, 09:31 AM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:13 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:30 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:31 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 03:41 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 05:09 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 06:36 PM
Please consider querystring support in 2.x - by El Forum - 08-24-2010, 01:32 PM
Please consider querystring support in 2.x - by El Forum - 08-24-2010, 01:32 PM
Please consider querystring support in 2.x - by El Forum - 08-25-2010, 05:33 PM
Please consider querystring support in 2.x - by El Forum - 08-25-2010, 06:51 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 12:48 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 05:51 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 10:16 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 10:16 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 11:19 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 12:28 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 02:27 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 04:34 PM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 01:32 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 02:21 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 07:36 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 02:52 PM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 04:15 PM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 03:08 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 07:46 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 08:30 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 11:53 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 03:41 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 04:58 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 05:01 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 05:33 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 10:28 PM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 04:57 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:19 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:29 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:47 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:53 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 11:11 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 11:23 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 01:39 PM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 04:00 PM
Please consider querystring support in 2.x - by El Forum - 04-25-2012, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB