Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

iis_rewrite can`t convert rule

$
0
0

Hi

I am moving my test Apache site on Webasyst framework (e-shop) to IIS 8.5

So, it`s ok on Apache, but there is 1 rule in the root of site that iis rewrite can`t decode to web.config in auto mode (why?)

RewriteCond %{REQUEST_URI} !\.(js|css|jpg|jpeg|gif|png)$ [or]
 RewriteCond %{REQUEST_URI} apple-touch-icon\.png$
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ index.php [L,QSA]

How to correctly translate it to web.config ?

I found some solution in web, but main page still have 404 error

<rule name="Webasyst Controller" stopProcessing="true"><match url="^(.*)$" ignoreCase="false" /><conditions logicalGrouping="MatchAll"><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /><add input="{URL}" pattern="!\.(eot|ttf|woff|js|css|jpg|jpeg|gif|png)$" negate="true" /><add input="{URL}" pattern="apple-touch-icon\.png$" negate="true" /></conditions><action type="Rewrite" url="index.php" appendQueryString="true" /></rule>

Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>