Convert .htaccess To Web.confi

Convert .htaccess To Web.confi
Hello,

I have a website which runs in apache and I need to transfer it to IIS. I am looking for a translation of the following .htaccess file to web.config format.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.mydomain.com$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule .* pages.php [L]

Leave a Reply

Your email address will not be published.