| Install Search Engine Friendly URLs in IIS
  
Written by:
        Will Kruss 
 on 
 31 May 2016 07:06 PM
31 May 2016 07:06 PM | 
					| Read the article and know how to install search engine friendly URLs in IIS.  Read and lean step by step. To install search engine friendly URLs in IIS: 
Install URL Rewrite 2.0 (see http://www.vpsblocks.com.au/support/Knowledgebase/Article/View/54/8/installing-url-rewrite-module-2-iis-75)Open the file in your kayako installation at \__swift\config\config.phpChange the line define('SWIFT_BASENAME', 'index.php?'); to define('SWIFT_BASENAME', '');Modify the web.config file where you have installed kayako, and add the rewrite rules in the system.Webserver tag e.g.:
 <system.webServer>
 <rewrite>
 <rules>
 <rule name="General Redirect (exclude Admin, Staff, static assets)" stopProcessing="false">
 <match url="^(.*)$" ignoreCase="true" />
 <conditions logicalGrouping="MatchAll">
 <add input="{R:1}" pattern="^(admin|api|console|favicon\.ico|robots\.txt|sitemap\.xml|index\.php|tiny_mce_gzip\.php|cron|staff|rss|setup|visitor|winapp|wallboard|__swift)" negate="true" />
 <add input="{R:1}" pattern="\.(jpg|jpeg|png|gif|js|css|htm|html)$" negate="true" />
 <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
 </conditions>
 <action type="Rewrite" url="index.php?/{R:1}" appendQueryString="false" />
 </rule>
 <rule name="Redirect for Staff, Admin, etc" stopProcessing="false">
 <match url="^([a-zA-Z0-9]*)/(.*)$" ignoreCase="true" />
 <conditions logicalGrouping="MatchAll">
 <add input="{R:1}" pattern="^(favicon\.ico|robots\.txt|sitemap\.xml|index\.php|tiny_mce_gzip\.php|__swift)" negate="true" />
 <add input="{R:1}" pattern="\.(jpg|jpeg|png|gif|js|css|htm|html)$" negate="true" />
 <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
 </conditions>
 <action type="Rewrite" url="{R:1}/index.php?/{R:2}" appendQueryString="false" />
 </rule>
 </rules>
 </rewrite>
 </system.webServer>
 | 
					
					| 
					
			 (0 vote(s))  Helpful  Not helpful 
 |