Convert htaccess to helicon tech ISAPI rewrite

Posted by Luis on Stack Overflow See other posts from Stack Overflow or by Luis
Published on 2010-04-29T09:23:26Z Indexed on 2010/04/29 9:27 UTC
Read the original article Hit count: 1020

Can someone help me converting these htaccess rewrite rules to helicon tech ISAP?

RewriteEngine On

RewriteBase /

# remove the www
RewriteCond %{HTTP_HOST} ^(www\.$) [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]

# Remove index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

Thanks

© Stack Overflow or respective owner

Related posts about isapi-rewrite

Related posts about .htaccess