SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    0 Post(s)
    0 Thread(s)

    Cool Running Remote Code igniter Project on Local WAMP server

    Hi ,
    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 :

    RewriteEngine on
    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

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2011
    Kolding, Denmark
    6 Post(s)
    0 Thread(s)
    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
    Code: what.local
    to your hosts file and then configure apache VirtualHost.
    <VirtualHost *:80>
             DocumentRoot "/PATH_TO_YOUR_PROJECT_DIR"
             ServerName  wha.local
        <Directory "/PATH_TO_YOUR_PROJECT_DIR/">
             Options Indexes FollowSymLinks
             AllowOverride All
             Require all granted

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts