Search for:
Sign in
Register
Menu
Articles
Questions & Answers
Download
Documentation
Support
Marketplace
Old Forums
Search:
Search text
Technical support
This forum is closed.
Version 1.x
>
Technical support
>
Mechanism for excluding directories from URL rewriting?
View modes:
View mode
Threaded
Flat - newest to oldest
Flat - oldest to newest
Member
cpaul
-
4/12/2005 5:28:28 PM
Mechanism for excluding directories from URL rewriting?
I'm reading through the developer guide and it says the code that handles this is in the Global.asax.cs file. So I open it up and see:
<code>
string currentPath = Request.CurrentExecutionFilePath.Substring(Request.ApplicationPath.Length);
if (currentPath.LastIndexOf("/") > 0 && !(currentPath.ToLower().StartsWith("/cmsdesk")) && !(currentPath.ToLower().StartsWith("cmsdesk")))
{
Kentico.CMS.UrlRewritingEngine.UrlRewriter.RewriteUrl(Functions.GetConnectionString());
}
</code>
This seems insufficient at best. Could the next version support some sort of list set somewhere itemizing the directories to exclude from this? Is there a way to do this without just adding my directories to the if statement above?
Guest
admin
-
4/12/2005 7:13:35 PM
Re: Mechanism for excluding directories from URL rewriting?
Hi Paul,
Yes, you can customize it by adding your directories to the if statement. We will improve this in version 1.6a.
Best Regards,
Top