• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run codeigniter with windows server

#1
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, 07: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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.