![]() |
codeigniter problem - site redirects to localhost in WAMP - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: codeigniter problem - site redirects to localhost in WAMP (/showthread.php?tid=42017) |
codeigniter problem - site redirects to localhost in WAMP - El Forum - 05-23-2011 [eluser]departedmind[/eluser] 0 down vote favorite i just copied the CI files from server to my localhost and I am having problem running the site. Whenever i click the site link in WAMP http://localhost/CmpOnline/ it shows me the same folderlist as on localhost this is my htaccess file current Code: RewriteEngine on and I tried this too Code: RewriteEngine on and in the config file Code: $config['base_url'] = "http://localhost/CmpOnline/"; I changes this to all the other available options but it still does not work But it still does not work. Any help? codeigniter problem - site redirects to localhost in WAMP - El Forum - 05-24-2011 [eluser]InsiteFX[/eluser] RewriteBase /CmpOnline/ InsiteFX codeigniter problem - site redirects to localhost in WAMP - El Forum - 05-24-2011 [eluser]departedmind[/eluser] shows this in the address bar http://localhost/CmpOnline/ but with the WAMP index page codeigniter problem - site redirects to localhost in WAMP - El Forum - 05-24-2011 [eluser]InsiteFX[/eluser] I have seen this happen because of this Code: $config['index_page'] = ""; InsiteFX codeigniter problem - site redirects to localhost in WAMP - El Forum - 05-24-2011 [eluser]departedmind[/eluser] Same problem, url is correct but still shows the wamp folder list. I also changes this $config['uri_protocol'] = "AUTO"; to all other available options, still does not work. Any help? codeigniter problem - site redirects to localhost in WAMP - El Forum - 05-24-2011 [eluser]departedmind[/eluser] When i try with this url http://localhost/CmpOnline/index.php/main/ The page loads but css and javascripts does not load, when i check through firebug the path shows like this http://localhost/javascript/common.js (for all the css, js and images) codeigniter problem - site redirects to localhost in WAMP - El Forum - 05-24-2011 [eluser]InsiteFX[/eluser] This is posted in the wrong forum topic ( No Code Allowed ) If you need help like this please post your question in the correct forum, then we can show you code to do it. InsiteFX codeigniter problem - site redirects to localhost in WAMP - El Forum - 05-24-2011 [eluser]jmb727[/eluser] I had the same problem, remove the first forward slash from the rewrite rule. From Code: RewriteEngine on To Code: RewriteEngine on codeigniter problem - site redirects to localhost in WAMP - El Forum - 07-25-2011 [eluser]Manjunath Reddy[/eluser] I'm also facing the same problem. Here is my config.php Code: $config['base_url'] = 'http://localhost/cicms/'; and .htaccess Code: RewriteEngine On each time I click on any link it redirects to wamp home page. it works fine if I include localhost/sitename/index.php/category but it does not work if the link is localhost/sitename/category and this always redirects to wamp home page. I have tried all the possible ways mentioned above in this thread :-) couldn't make it work I'm lost any help would be appreciated. codeigniter problem - site redirects to localhost in WAMP - El Forum - 07-25-2011 [eluser]jmb727[/eluser] [quote author="Manjunath Reddy" date="1311606129"]I'm also facing the same problem. Here is my config.php Code: $config['base_url'] = 'http://localhost/cicms/'; and .htaccess Code: RewriteEngine On each time I click on any link it redirects to wamp home page. it works fine if I include localhost/sitename/index.php/category but it does not work if the link is localhost/sitename/category and this always redirects to wamp home page. I have tried all the possible ways mentioned above in this thread :-) couldn't make it work I'm lost any help would be appreciated.[/quote] Hi there, I've had this problem before with WAMP. WAMP doesn't come with mod_rewrite turned on by default. Open up C:\wamp\bin\apache\Apache 2.x.x\conf\httpd.conf Use CTLR+F to find 'mod_rewrite' without the quotes and remove the # at the beginning of the line then restart wamp. |