Welcome Guest, Not a member yet? Register   Sign In
Help w/ URI Routing - Skip class & function calls
#6

[eluser]Wyndsang[/eluser]
I have now used mod_rewrite to remove the index.php-part of the URI, so that much is solved.

@Benito, well, I want to do it the other way 'round, if I understand you correctly.

I want visitors to visit a nice, clean URL, such as

Code:
example.com/pricing

And I want routes to assume that, as long as there is only one URI segment, it should be passed as an argument to Page/fetch_page_by_reference

The above URL would thus be the equivalent of visiting

Code:
example.com/page/fetch_page_by_reference/pricing

Perhaps worth noting, Page is my default controller.
I have tried various approaches using $route['(:any')] to no avail.
I either get a Not Found-error, or a CI 404.


Messages In This Thread
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 04:02 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 04:50 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 05:42 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 07:06 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 08:22 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 09:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB