Welcome Guest, Not a member yet? Register   Sign In
friendly URL's and .htaccess
#1

[eluser]Tazz[/eluser]
Hi everyone...

This is my first time using CodeIgniter and it's really awesome. I am struggling a bit with how to implement search engine friendly URL's.

I made a .htaccess file for my website and filled it with some code I found on a site. Next I changed the $config['uri_protocol'] = "REQUEST_URI"; and removed the index.php from $config['index_page'] = "";

All of this works on my localhost (I use XAMPP on my dev machine), but not on my host's server.

If I have a few links that point to another page(view), it is my understanding that I should call the controller that loads that view, right? In other words my href should call a controller, to my understanding. For example, I have my main page (welcome page) and it has my template on it (which I loaded with three separate views, header, body and footer). Now in my body I have links to my other pages, blog, forum, links, photos...etc.. What would my href look like to call those pages? I currently use on my localhost(this only works on my localhost currently) <a href='MyLinks'>Links</a> then my URL changes to http://mysite.localhost/MyLinks and then calls the MyLinks controller which brings up my view. My question is, is this the right way to use the href?? also, why does this not work on my host's server, is there something I can change? Could there be a problem wiht my .htacccess?


Messages In This Thread
friendly URL's and .htaccess - by El Forum - 10-04-2008, 12:55 AM
friendly URL's and .htaccess - by El Forum - 10-04-2008, 02:24 AM
friendly URL's and .htaccess - by El Forum - 10-04-2008, 02:49 AM
friendly URL's and .htaccess - by El Forum - 10-04-2008, 03:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB