CodeIgniter Forums
run codeigniter with windows server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: run codeigniter with windows server (/showthread.php?tid=68240)



run codeigniter with windows server - GoldenFingers - 06-14-2017

hi, 
i have windows server and i can't run my script on it
this error "Not Found"
htaccess
<IfModule mod_rewrite.c>

  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 /index.php
</IfModule>

the problem with index.php
when i enter to website without index.php/ not work
i don't want index.php/


RE: run codeigniter with windows server - Paradinight - 06-14-2017

(06-14-2017, 06:32 PM)GoldenFingers Wrote: hi, 
i have windows server and i can't run my script on it
this error "Not Found"
htaccess
<IfModule mod_rewrite.c>

  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 /index.php
</IfModule>

the problem with index.php
when i enter to website without index.php/ not work
i don't want index.php/

Windows Server use the iis as webserver and not apache.

https://manage.accuwebhosting.com/knowledgebase/2415/How-to-Enable-modrewrite-on-IIS-Web-Server.html


if you use apache check if the mod_rewrite is enable and if you can change the setting
http://httpd.apache.org/docs/current/mod/core.html#allowoverride
http://httpd.apache.org/docs/current/mod/mod_rewrite.html


RE: run codeigniter with windows server - desbest - 06-16-2017

Helicon Ape makes .htaccess compatible with IIS
http://www.helicontech.com/ape/