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

[eluser]toopay[/eluser]
[quote author="Wyndsang" date="1311606161"]
However, I would like to be able to just supply:

Code:
example.com/index.php/reference
or
example.com/reference

Is this possible with $route['']?
[/quote]

To achieve the second uri, you need to remove index.php from your uri. How? Simply add .htaccess file, generally that will contain some lines like these :

Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

After that, you could set your whatsoever route, details : URI Routing


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