Simple address add (.) special charcters

Vote:
 

hi

wanted to know if i can change the validation of the simple address to allow extensions ?

for example name in url can contain aaa.html but the simple address i get an error

  • "iii.htm" is not a valid value for "Simple address". Only the following characters are allowed when constructing the simple address: a-z, 0-9, -, _, ~, /

any suggestions ?

#82475
Mar 13, 2014 10:46
Vote:
 

ok, didn't get an answer so i tried using ISAPI_Rewrite 3  from helicon.

the problem now that the rewrite rules does a 301 to the new address  ( i think it and epi write problem)

#82756
Mar 19, 2014 13:00
Vote:
 

You can create a custom segment that looks at poperty on page to get around the simple url validation.

Try doing this in initialization module it should prevent the 301

var type = typeof(UrlRewriteProvider);

var field = type.GetProperty("FriendlyUrlExtension");
field.SetValue(null, ".html", null);

#82796
Mar 20, 2014 7:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.