开发者

ISAPI rewrite - ignore subdirectory

I have a site where I am using an ISAPI filter to force the removal of index.cfm from the URL (i.e. http://www.site.com/index.cfm becomes http://www.site.com/). Well this is fine for most of the site except for a password protected area of the site (which does not need the rewrite, as this part of the site does not affect SEO).

From what I have read online I need to set up a rewrite condition which will ignore the rewrite statement which removes the index.cfm extension.

So just to be clear I want the rewrite to operate as normal on http://www.site.com/ but not when the user navigates here: http://www.site.com/workflow/

Any help would be greatly a开发者_如何学运维ppreciated. Thank you.

EDIT: I tried the rule that Cade recommended, but it seems that index.cfm is still being removed when I try to navigate to the workflow sub directory. For some reason having the index.cfm being removed is making it impossible to log into the workflow portal. Any suggestions??

Thanks!


ISAPI Rewrite 3 Rule: RewriteRule ^workflow/(.*)$ /workflow/$1 [NC,L]

ISAPI Rewrite 2 Rule: RewriteRule /workflow/(.*) /workflow/$1 [NC,L]

This will pass any requests for workflow directly through to the workflow folder. You would place this before your rewrite rule that removes index.cfm from the URL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜