apache - Convert .htaccess to web.config -


i'm using iis-7 , moving site on linux , apache based server environment. know web.config same job .htaccess. i'm looking convert following lines .htaccess file web.config file. begin?

options +followsymlinks rewriteengine on rewriterule ([a-za-z0-9/_-]+).(jp(e?)g|gif|png)$ thumb.php?src=../../uploads/default/files/$1.$2&size=160x90 

to convert rules .htaccess web.config can use import feature of iis url rewrite module:

  1. go iis manager
  2. click site in tree
  3. double-click url rewrite in feature view
  4. click import rules in actions panel
  5. paste .htaccess rules rewrite rules textbox , you'd see converted rules below.

more info feature.

for instance rules converted these ones:

<rewrite>   <rules>     <rule name="imported rule 1">       <match url="([a-za-z0-9/_-]+).(jp(e?)g|gif|png)$" ignorecase="false" />       <action type="rewrite" url="thumb.php?src=../../uploads/default/files/{r:1}.{r:2}&amp;size=160x90" appendquerystring="false" />     </rule>   </rules> </rewrite> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -