Welcome Guest, Not a member yet? Register   Sign In
Transforming codeigniter URLs to SEO friendly URLS
#4

[eluser]Saints77[/eluser]
Hi Bretticus

Thanks for your reply and assistance.

I believe I've cracked it now (it's actually working) but it's more a case of getting used to codeIgniter's way of doing things than anything else. I understand the MVC design pattern in theory but translating that into practice can be tricky!

The following sections indicate how my files are coded for the routes to work:


Routes.php
$route['world-travel-gallery'] = "gallery/index";
$route['sculpture-digital-media-creative-work-portfolio'] = "portfolio/load_portfolios/";


config.php (testing on localhost right now so URL is not too pretty!)
$config['base_url'] = "http://localhost/~name/project_sites/site_name/year/";
$config['index_page'] = "";


htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|javascript|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]


I'm not sure where I may have been going wrong or if there is something I am fundamentally missing with any of the above. Guess that's why they call it a learning curve Smile

Appreciate your time and suggestions. It's thanks to people like you that people like me can actually crack niggles like these! Smile


Messages In This Thread
Transforming codeigniter URLs to SEO friendly URLS - by El Forum - 10-28-2010, 05:31 PM
Transforming codeigniter URLs to SEO friendly URLS - by El Forum - 10-28-2010, 07:09 PM
Transforming codeigniter URLs to SEO friendly URLS - by El Forum - 10-28-2010, 07:47 PM
Transforming codeigniter URLs to SEO friendly URLS - by El Forum - 10-29-2010, 05:28 AM
Transforming codeigniter URLs to SEO friendly URLS - by El Forum - 10-29-2010, 05:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB