Modify a rule for a Zeus server rule (Codeigniter)

I am going to live with a site running Codeigniter. I want to remove index.php from the url so instead:

http://www.mysite.com/index.php/controller 

I get something like this:

 http://www.mysite.com/controller 

Still pretty simple. I used to use the mod-rewrite rule provided by the Codeigniter documentation:

 RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] 

It works like a charm. However, for this site I need to use the Zeus web server, not Apache, and I am not familiar with it at all. Zeus has its own rewriting rules, such as:

 RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^[^/]*\.html$ index.php 

will be as follows:

 match URL into $ with ^/[^/]*\.html$ if matched then set URL = /index.php 

Can someone help me rewrite the first rule for Zeus? Any help is greatly appreciated!

+3
source share
1 answer

It turned out that it was pleasant for me to work:

 map path into SCRATCH:DOCROOT from / set SCRATCH:ORIG_URL = %{URL} set SCRATCH:REQUEST_URI = %{URL} look for file at %{SCRATCH:DOCROOT}%{SCRATCH:REQUEST_URI} if not exists then look for dir at %{SCRATCH:REQUEST_URI}%{SCRATCH:REQUEST_URI} if not exists then set URL = /index.php%{SCRATCH:REQUEST_URI} 
+3
source

All Articles