Hi guys could you please tell me how can I configure codeigniter mod_rewrite on wamp?
I've tried enabling it through the wamp menu(wamp-->apache-->apache modules-->rewrite module) and restarting wamp but it's like nothing happened.
I'm asking you guys this cause I need to get rid of the index.php in my codeigniter urls through .htaccess
From stackoverflow
-
create/edit .htaccess on your root CI folder (where index.php is located)
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^system.* RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] RewriteRule ^(.*)$ /index.php?/$1 [L] </IfModule>
0 comments:
Post a Comment