Run a CodeIgniter project issue

2019-09-09 19:48发布

问题:

I am new to CodeIgniter, I have a project named task_board. everything is OK. However when I typed localhost/task_board in browser, the following page is opened:

When I clicked on the highlighted project, following page is opened:

localhost without project is looked like:

回答1:

I think you need to enable rewrite module - please follow these steps

1) Open apache’s configuration file using - {wamp_dir}/apache/conf/httpd.conf

2) Search for the following string:

LoadModule rewrite_module modules/mod_rewrite.so

and uncomment it (remove the ‘#’ sign).

3) Now search for another string AllowOverride None and replace it by AllowOverride All This will be on two places, so you will need to replace two times Finally save the changes,

close your text editor and restart your apache server. That’s all.

Please follow these steps and let me know if you have any issues.