Welcome Guest, Not a member yet? Register   Sign In
Question about routes.php
#1

[eluser]xare[/eluser]
Hello

I am using a jquery plugin that shows all my page navigation as a tabbed browsing system.

The links have this form

http://www.domain.tld/#1
http://www.domain.tld/#2
..........

I have changed the javascript code so we can generate the following urls, so we can be more SEO:

http://www.domain.tld/home
http://www.domain.tld/secondpage
....

In routes.php I have written the rules for redirection:
$route['home']="#1";
$route['secondpage']="#2";

But, for example on the second case Code igniter looks for the secondpage controller and does not redirect. So far for the jquery plugin (coda slider) to work I need the links to be converted to #1, #2, etc.....

How can i check using webdevelopper or firebug addons on firefox if an address is being rewritten ?


Messages In This Thread
Question about routes.php - by El Forum - 09-20-2010, 12:11 AM
Question about routes.php - by El Forum - 09-20-2010, 09:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB