![]() |
[lighttpd] rewrite rules for CI - 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: [lighttpd] rewrite rules for CI (/showthread.php?tid=34456) |
[lighttpd] rewrite rules for CI - El Forum - 09-30-2010 [eluser]_krc_[/eluser] Hi guyz. I have a problem with setting up rewrite rule for my CI project with lighttpd. I tried to search every solution over the web, trying many combinations and nothing works ;/. Maybe You can help me out. My current rewrite rule for apache was: Code: DirectoryIndex index.php and the config from CI is: Code: $config['base_url'] = "http://localhost:8181/ci_demo/"; Can You please tell me how the rewrite rule for lighty should look like in my case? Thanks in advance [lighttpd] rewrite rules for CI - El Forum - 09-30-2010 [eluser]Dennis Rasmussen[/eluser] http://codeigniter.com/wiki/Rewrite_with_lighttpd/ ![]() [lighttpd] rewrite rules for CI - El Forum - 09-30-2010 [eluser]_krc_[/eluser] I tried that before, not working. Entering: http://127.0.0.1:8181/ci_demo/welcome/index shows: 404 - Not found [lighttpd] rewrite rules for CI - El Forum - 09-30-2010 [eluser]Dennis Rasmussen[/eluser] Apache error or Codeigniter error? [lighttpd] rewrite rules for CI - El Forum - 09-30-2010 [eluser]_krc_[/eluser] Apache is stopped and the 404 source is: Code: <?xml version="1.0" encoding="iso-8859-1"?> So I guess it's not CI either When I enter: http://127.0.0.1:8181/ - it show the index page in www, so it's working properly. When I turn off the rewrite rule, I can only get to: http://127.0.0.1:8181/ci_demo [lighttpd] rewrite rules for CI - El Forum - 09-30-2010 [eluser]_krc_[/eluser] also for the record, access log show this: 10.0.2.2 127.0.0.1:8181 - [29/Sep/2010:20:56:25 -0400] "GET /ci_demo/welcome/index HTTP/1.1" 404 345 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10" |