Welcome Guest, Not a member yet? Register   Sign In
run codeigniter with windows server
#1

(This post was last modified: 06-14-2017, 06:35 PM by GoldenFingers.)

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/
Reply
#2

(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/knowle...erver.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...owoverride
http://httpd.apache.org/docs/current/mod...write.html
Reply
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB