Hi all,
I am trying to do something in CI which I cannot find any documentation for. I have set up my .htaccess so that if a file does not exist, and no controller/function is called it goes to the home page, but what I want is this:
Instead of http://mysite.com/controller/function/variable
I just use http://mysite.com/variable and it simply uses the default controller and index function.
The reason is, I am creating a CMS where pages will be retrieved like:
http://mysite.com/page/display/home
But I would much prefer:
http://mysite.com/home
http://mysite.com/contact
http://mysite.com/about
Anyone done this or know how to?
					I am trying to do something in CI which I cannot find any documentation for. I have set up my .htaccess so that if a file does not exist, and no controller/function is called it goes to the home page, but what I want is this:
Instead of http://mysite.com/controller/function/variable
I just use http://mysite.com/variable and it simply uses the default controller and index function.
The reason is, I am creating a CMS where pages will be retrieved like:
http://mysite.com/page/display/home
But I would much prefer:
http://mysite.com/home
http://mysite.com/contact
http://mysite.com/about
Anyone done this or know how to?
Comment