Code Igniter - URL Rewrite

Posted by André Alçada Padez on Stack Overflow See other posts from Stack Overflow or by André Alçada Padez
Published on 2011-01-11T16:43:42Z Indexed on 2011/01/11 16:53 UTC
Read the original article Hit count: 236

Hey, i'm trying to get a project to work, but i am having trouble with the rewrite module.
I'm running Wamp over Windows XP. I changed httpd.conf to change the root of localhost to:

DocumentRoot "C:/wamp/www/project/docroot/"

I have htaccess

RewriteEngine On
RewriteBase /

my Apache has the rewrite module Activated.
my base_url() in config.php is 'http://localhost/'
in routes.php i have:

$route['default_controller'] = "home";  
$route['our-recipes'] = "recipes";  
and more pairs

when i point the browser to http://localhost/ i get the homepage of my site, but when i click on any internal link like to 'our-recipes' it loads but i get the same homepage, with the new url on the location bar. if i try to access 'http://localhost/recipes' i get the same result.

this is my folder structure:
folder_structure

Can anyone please solve this for me??

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about codeigniter