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:
- go iis manager
- click site in tree
- double-click url rewrite in feature view
- click import rules in actions panel
- 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}&size=160x90" appendquerystring="false" /> </rule> </rules> </rewrite>
Comments
Post a Comment