Convert .htaccess To Web.confi

Convert .htaccess To Web.confi

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} !^$ [NC]
RewriteRule ^(.*)$$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. Required fields are marked *