Welcome Guest, Not a member yet? Register   Sign In
How does codeigniter allow for friendly urls?
#5

[eluser]Unknown[/eluser]
Thank you all for your responses, but I think I didn't explain myself clearly. I am not working under CI. I am working on a personal project inspired by CI. One of the things I admire from CI is its ability to use friendly urls. I've figured out how to parse the URI and load the appropiate controller, but when this happens the browser thinks I'm calling the CSS in a directory relative to the URI. At "www.example.com/index.php", the default controller is called and the css is also called correctly at "www.example.com/resources/style/default.css". However, at "www.example.com/index.php/blog/", the controller "blog" is found and loaded, but the css is called incorrectly at "www.example.com/index.php/blog/resources/style/default.css". I am trying to make it so when I make any HREF, it does it from the base url of the website, not from the URI (or URL? Not entirely sure here.) Again, thanks for your responses!


Messages In This Thread
How does codeigniter allow for friendly urls? - by El Forum - 10-02-2009, 01:48 PM
How does codeigniter allow for friendly urls? - by El Forum - 10-02-2009, 01:49 PM
How does codeigniter allow for friendly urls? - by El Forum - 10-02-2009, 02:20 PM
How does codeigniter allow for friendly urls? - by El Forum - 10-02-2009, 02:22 PM
How does codeigniter allow for friendly urls? - by El Forum - 10-02-2009, 02:36 PM
How does codeigniter allow for friendly urls? - by El Forum - 10-02-2009, 02:38 PM
How does codeigniter allow for friendly urls? - by El Forum - 10-02-2009, 03:16 PM
How does codeigniter allow for friendly urls? - by El Forum - 10-03-2009, 03:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB