n00b:How to enable query string AND have clean URLs? |
[eluser]Unknown[/eluser]
Hi there Just started with CI today and I'm really impressed so far. I've been using CakePHP for a while now, but I'm thinking of switching to CI due to it's small footprint and fast execution. I'm thinking of using CI as a backbone for a Facebook application I'm writing, so speed is key. Because I'm writing for Facebook, I need to enable query strings in CI. I know I can just do: Code: $config['enable_query_strings'] = TRUE; But, ideally I'd also like to have nice clean URLs enabled, so, for example I need to have URLs like... Code: /about?fb_sig_session_key=<fb_sig_session_key> which would be handled by the index() function in my About controller. Currently though, a request like this generates a 404 page. Is there any way to get this working in CI? Many thanks, Steve
[eluser]narkaT[/eluser]
yes, in the 8th post below yours: URL query string :roll:
[eluser]Unknown[/eluser]
Got it, thanks! So, I changed my config.php as follows: Code: $config['uri_protocol'] = "PATH_INFO"; |
Welcome Guest, Not a member yet? Register Sign In |