SOLVED - Duplicate folder/Function Names in URL/URI |
[eluser]Devon Lambert[/eluser]
Hello CIers, I have a small problem that is more annoying than anything right now. I'm hoping that someone has run into this issue and may know off the top of their heads how I can resolve it. I am seeing duplicate function names in my url when I enter a particular section of my site: http://localhost/mysite/admin/admin/comments The red "admin" in that url shouldn't be there? It should look like this: http://localhost/mysite/admin/comments I've created some simple links (I've also tried using the base_url function and have had similar results): <li><a href="<?php echo site_url('admin'); ?>"><span>Home</span></a></li> <li><a href="<?php echo site_url('admin/comments'); ?>"><span>Comments</span></a></li> <li><a href="<?php echo site_url('admin/add'); ?>"><span>Add</span></a></li> <li><a href="<?php echo site_url('admin/approve'); ?>"><span>Approve</span></a></li> <li><a href="<?php echo site_url('admin/news'); ?>"><span>News</span></a></li> The admin segment points to an admin controller with the respective functions contained in that one controller. I am not making use of cache, so I am not sure what could be causing this? I thought about the htaccess file but it seems to be in order and working well with the rest of the site. Any ideas from the CI world?
[eluser]Devon Lambert[/eluser]
For anyone else out there, I fixed this by simply using CI's "site_url" function for the internal urls I was linking to. |
Welcome Guest, Not a member yet? Register Sign In |