bilalkhalidraja — 2012-11-09T04:46:27-05:00 — #1
I am new bee to codeigniter and this is my first post on sitepoint.I have downloaed a Live codeigniter project from remote server and i want to run it on my LOCAL WAMP server.Whenever ,i click on the Project Link on from WAMP server.It constantly redirects me to the same folder.I mean if I choose a project (http://localhost/Wha) from localhost,it takes me to (http://localhost/Wha/Wha/) again and again.I have modified the apache httpd file and turned the mod_rewrite on but still not working.
My httaccess within the codeigniter root looks like this :
RewriteCond $1 !^(index\.php|images|lists|eshots|useruploads|temp|SpryAssets|css|js|robots\.txt|timthumb\.php)
RewriteRule ^(.*)$ /index.php?$1 [L]
Also,is there any one could tell me how I can access my project like this "wha.local" using virtual host??I would appreciate if anybody could post a link/tutorial to help to deal with this kinda situation.Cheers
ronalds — 2012-11-10T19:54:18-05:00 — #2
Haven't used Codeigniter for some time, but I would check routes.php configuration and config.php to be sure url and path related settings are correct.
To create host for your setup, you can add
to your hosts file and then configure apache VirtualHost.
Options Indexes FollowSymLinks
Require all granted