RcBuilder@walla.com
call centre: 054-5614020

FRT to check Rewriter

Posted by: RcBuilder  /   Category: IIS / IIS Rewriter   /   1 Comment
29
Apr
2014

IIS 7 FAILED REQUEST TRACING(FRT) * alias : FRT * FRT can be used with the URL rewrite module to trace how rewrite rules were applied to the request URL installation: * control panel -> programs -> add features -> IIS -> WWWServices -> diagnostic -> Tracing using: * choose the site you want to trace * configure tab (in the right.

Read more

Rewriter server variables

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   No Comments
29
Apr
2014

important! 1.in order to use Server Variables in the rewrite module we MUST add the variables we want to use to ALLOW mode 2.usually used for outbound rules add Server Variables to ALLOW mode * right pane -> (Manage server variables)view server variables * add -> set the server variable name to add using Server Variables(inbound) * add Server Variables to ALLOW.

Read more

Rewriter rewrite MAPs

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

Define New Map: rewrite maps are collection of rules (key value collection) * in the right pane -> View Rewrite maps (manage providers) * add rewrite map -> set map name * add mapping entry -> set the original and the new values notice! add as much entries as you need in the same way Create New Rule and Attach it.

Read more

Rewriter Remove suffix slash

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   No Comments
29
Apr
2014

Remove suffix '/' * add rule(right pane) -> Inbound Rules -> Blank rule * enter rule Name * choose Using 'Regular Expression' and choose 'match pattern' * set Regular Expression rule pattern to '(.*)/$' * add condition -> set the input as {REQUEST_FILENAME} and define the matchType to be 'IsFile' * add condition -> set the input as {REQUEST_FILENAME} and define.

Read more

Rewriter remove .aspx suffix rule

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

remove .aspx suffix <rewrite> <rules> <rule name="Index Page" enabled="true" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAny"> <add input="{URL}" pattern="index.txt" /> <add input="{URL}" pattern="^/$" /> </conditions> <action type="None" /> </rule> <rule name="Remove aspx suffix" enabled="true" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{URL}" negate="true" pattern="\.aspx" /> </conditions> <action type="Rewrite" url="{R:0}.aspx".

Read more

Rewriter redirect rule

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

Redirect Types * structure: - redirectType="" * example: ... ... <action type="Redirect" url="http://www.mydomain.com" redirectType="Temporary" /> * - Permanent // 301 - Found // 302 - SeeOther // 303 - Temporary // 307 Add redirect rule * Add Blank rule * pattern : .* * conditions : {URL} matches the pattern 'index.htm' remark: use ^$ for exact match instead of contains * action - redirect url : 'http://www.ynet.co.il' redirect type : temporary(307) * this.

Read more

Rewriter Ignore extensions Rule

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

Add Ignore extensions Rule: * add rule(right pane) -> Inbound Rules -> Blank rule * enter rule Name * choose Using 'Regular Expression' and choose the rewrite type (match or not match the pattern) * set your Regular Expression rule pattern to .* (all) * add condition -> set the input as {URL} and pattern to be the extensions to.

Read more

Rewriter – General Details

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   1 Comment
29
Apr
2014

General: * the rules are created in the web.config file of the site/folder <system.webServer> <rewrite> <rules> <rule /> <rule /> <rule /> </rules> <outboundRules> <rule /> <rule /> <rule /> </outboundRules> </rewrite> </system.webServer> * recommendation - use stopProcessing="true" for each rule this will stop the other rules check for the current request * inbound rules are used for handling Requests and outbound rules are used for Responses * saved variables: we can use a lot.

Read more

Rewriter Friendly URL Rule

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   No Comments
29
Apr
2014

Add friendly URL Rule * add rule(right pane) -> User-friendly URL * enter example url (e.g: http://mydomain/Page1.htm?id=23&Name=Roby) at this point you will receive a ddl with some rewrite options - choose the most desired one (e.g:.

Read more

Rewriter Enforce Lower Case URLs

Posted by: RcBuilder  /   Category: IIS Rewriter / SOURCE CODE   /   No Comments
29
Apr
2014

Enforce Lower Case URLs * add rule(right pane) -> Inbound Rules -> Blank rule * enter rule Name * choose Using 'Regular Expression' and choose 'match pattern' * set Regular Expression rule pattern to '.*.*' * set action to be Permanent Redirect and set the url to {ToLower:{R:0}} * this rule will lower urls * web.config: <rule name="to lower" stopProcessing="true"> <match url=".*.*" ignoreCase="false" /> <action.

Read more
12
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים