Converting Apache rules to ZWSYou are migrating sites from Apache to Zeus, and wish to convert your existing Apache rewrite rules by hand. Apache:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[^/]*\.html$ index.php
Zeus Web Server:match URL into $ with ^[^\/]*\.html$ if matched then set URL = index.php endif Aside from keywords and formatting, Apache and Zeus rules are very similar, although Zeus rules can be much more readable and offer additional functionality. The match expression itself can remain intact with no changes, whereas the arcane RewriteCond directive is rewritten in a form much closer to natural language. The REQUEST_FILENAME variable of Apache is the URL variable in Zeus, upon which a pattern match is attempted in the first line of the Zeus rule. If this match succeeds, then the URL field used for the remainder of the request is set to the desired page.
Content Manager
[Administrator] 16 December 2005
|
Recent Articles
Other Resources
|


