Welcome Guest, Not a member yet? Register   Sign In
Customizing View URL
#1

[eluser]Jaymey[/eluser]
I have set up a htaccess so that:

http://mydomain.com/dev/index.php/object
goes to
http://mydomain.com/dev/object

My problem, is that within that object I pull in a view like so:
$this->load->view('login');

It then displays the url as:

http://u-snap.com.au/dev/index.php/access/login

Whereas I'd prefer

http://u-snap.com.au/dev/access/login

Is this possible?
#2

[eluser]jedd[/eluser]
Hi Jaymey and welcome to the forums.

You need to modify your config/config.php file, around line 28 there'll be something that needs to look like this:

Code:
$config['index_page'] = "";
#3

[eluser]Jaymey[/eluser]
Hi Jedd,

Thanks for the welcome and the help. That worked a treat!

I'm really excited about CodeIgnitor.... it nearly seems to good to be true Smile




Theme © iAndrew 2016 - Forum software by © MyBB