08-08-2012, 08:04 AM
[eluser]msy07[/eluser]
Good day!
I just wanted to ask you guys if anyone have encountered this weird problem.
I was trying out the codeigniter tutorial and I was in this specific page:
http://localhost/CI/index.php/news
and that page fetches all the news entries from the database and displays all the news
like a blogroll with each news entry a "read more link" with a url "http://localhost/CI/news/certain_post_here", which is correct.
Now my problem is that when I add up "/" at the end of the url like this:
http://localhost/CI/index.php/news/
the "read more" link changes to this "http://localhost/CI/news/news/certain_post_here" which is not correct because it double's up the url segment of the controller which would lead to a wrong destination.
I hope someone could help me figure this thing out.
Any help would be greatly appreciated.
Good day!
I just wanted to ask you guys if anyone have encountered this weird problem.
I was trying out the codeigniter tutorial and I was in this specific page:
http://localhost/CI/index.php/news
and that page fetches all the news entries from the database and displays all the news
like a blogroll with each news entry a "read more link" with a url "http://localhost/CI/news/certain_post_here", which is correct.
Now my problem is that when I add up "/" at the end of the url like this:
http://localhost/CI/index.php/news/
the "read more" link changes to this "http://localhost/CI/news/news/certain_post_here" which is not correct because it double's up the url segment of the controller which would lead to a wrong destination.
I hope someone could help me figure this thing out.
Any help would be greatly appreciated.