[eluser]Flemming[/eluser]
Hi gang. I have this weird issue with ONE of my controllers. When I call it directly from the browser by typing into the address bar like this:
mysite.com/menus
it works fine.
BUT - if I go to that page via a link in another page (href='/menus') it immediately redirects itself to /mysite.com/menus/?/menus and then gives me a 404 error.
It's only happening with this one controller. All the others are fine. I'm not doing anything unusual in this particular controller and in fact I've even tried totally stripping it down to :
Code:
<?php
class Menus extends Controller {
function __construct()
{
parent::Controller();
}
function index()
{
echo 'hello world';
}
}
and still I have the same problem.
So I put the controller on another of my CI sites and it worked absolutely fine!
It must be something to do with my config somewhere but I can't for the life of me figure it out. Has anyone else ever come across this? I'm stumped! :long: