tripatheea / inventory-management

A simple web-based inventory management software written in PHP (MySQL) with CodeIgniter.
MIT License
65 stars 67 forks source link

after loading redirecting to some other website #10

Open seeramzan opened 7 years ago

seeramzan commented 7 years ago

hi,

thanks for sharing , I configured and after loading the index.php its redirecting to some other website and not working.

AshuMann commented 7 years ago

Hi Seeramzan! Yesterday, i also faced the same problem and i found that config.php is redirecting to another website. I resolved this by changing following line to this - $config['base_url'] = 'http://localhost/YourAppFolder/';

TowerX commented 6 years ago

This issue is old but is still open and maybe it can help new on the long run. It doesn't hurt to double check the config.php located in: inventory-management/application_fa93g/config/config.php

Like @AshuMann mentioned, the $config['base_url'] = 'http://localhost/YourAppFolder/ '; if this URL is pointing at the wrong place, you won't be able to see what's inside your folder and all links will basically be redirected to that URL instead of yours. Always make sure this is pointing at the correct URL. This is the default setting per this project: $config['base_url'] = 'http://store.globalcollegiate.edu.np/'; Change that to your link.

Also edit the Timezone if needed on that config.php file (will help understanding what time to display depending on your choice).