Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter WITHOUT rewrite engine
#4

[eluser]mddd[/eluser]
Yes you can run CodeIgniter without rewrites. Only thing is that your urls will look like this:
Code:
// 'normal' situation
www.example.com/controller/method
// without rewriting
www.example.com/index.php/controller/method

But most IIS installations I have seen at web hosters do include a rewrite engine. The syntax is almost the same as .htaccess.
(I think the system is more or less a copy of that). It is called Isapi rewrite. You put a file 'httpd.ini' instead of .htaccess.
Here is a sample from a working project:
Code:
[ISAPI_Rewrite]
# no www? go to www site
RewriteCond Host: (?!^www.mywebsite.com)(.+)
RewriteRule /(.*) http\://www.mywebsite.com/$2 [I,RP]

# rewrite for index.php
RewriteRule /(?:img|css|js|scripts|uploads)/(.*) $0 [I,L]
RewriteRule /(.*) /index.php/$1 [L]


Messages In This Thread
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-26-2010, 04:37 PM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-26-2010, 04:45 PM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 12:42 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 12:59 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 10:39 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 11:50 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 01:19 PM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 09:33 PM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-28-2010, 03:23 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-28-2010, 11:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB