Welcome Guest, Not a member yet? Register   Sign In
SOLVED - Duplicate folder/Function Names in URL/URI
#1

[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="&lt;?php echo site_url('admin'); ?&gt;"><span>Home</span></a></li>
<li><a href="&lt;?php echo site_url('admin/comments'); ?&gt;"><span>Comments</span></a></li>
<li><a href="&lt;?php echo site_url('admin/add'); ?&gt;"><span>Add</span></a></li>
<li><a href="&lt;?php echo site_url('admin/approve'); ?&gt;"><span>Approve</span></a></li>
<li><a href="&lt;?php echo site_url('admin/news'); ?&gt;"><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?
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB