Is there a way to accept single GET parameter? |
[eluser]Sam Dark[/eluser]
If there is only one GET parameter in URL its name will be considered as first URI segment. As I can see this is to make URL like http://example.com/?blog/post/test to work without mod_rewrite. This is a god think but sometimes I need to accept first GET parameter. For example, some major link directories are adding ?from=dir to each link. So when going through http://example.com/?from=dir I'm getting 404 since I have nothing mapped to "from". I can map controller to "from". It will solve one issue but not all similar issues… Is there a way to accept first parameter as it is?
[eluser]Sam Dark[/eluser]
Exel from Russian community found this: URI.php Code: // If the URL has a question mark then it's simplest to just It prevents using GET with only one argument set.
[eluser]Sam Dark[/eluser]
Yes, there is… by changing $config['uri_protocol'] to 'PATH_INFO'. |
Welcome Guest, Not a member yet? Register Sign In |