codeigniter problem - site redirects to localhost in WAMP |
[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?
[eluser]departedmind[/eluser]
shows this in the address bar http://localhost/CmpOnline/ but with the WAMP index page
[eluser]InsiteFX[/eluser]
I have seen this happen because of this Code: $config['index_page'] = ""; InsiteFX
[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?
[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)
[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
[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
[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.
[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. |
Welcome Guest, Not a member yet? Register Sign In |