Convert Htaccess To Web.config

Convert Htaccess To Web.config

I have a website which runs in apache but I need to transfer it to IIS.

I am looking for a translation of the following .htaccess file to web.config format.

Thanks

—————————-

DirectoryIndex index.html index.htm default.htm index.php
Options +FollowSymlinks
RewriteEngine on

RewriteRule ^(.*\.(css|swf|js|xml|gif|jpg))$ $1 [L,QSA,NE]
RewriteRule ^((images|contactus|css|blog|script|style|docs|admin|fck|swf|Scripts|includes|images|img|uploads|templates|js|css|calendar|expert_area|fckfiles|flvplayer|highslide)/.*) $1 [L,QSA,NE]
RewriteRule ((fb_login|phpinfo|aim|csql|info|cron|index|site|simg|img|ajax|ari|fck_install|ffmpeg_test|file|redirect|rss_blogs|rss_info)\.php) $1 [L,QSA,NE]
RewriteRule ^ajax/?$ ajax.php [L,QSA,NE]
RewriteRule ((xd_receiver)\.htm) $1 [L,QSA,NE]
RewriteRule ((google7a9ea27ccf395e97)\.html) $1 [L,QSA,NE]
RewriteRule ((favicon)\.ico) $1 [L,QSA,NE]
RewriteRule ((W4uFNrPc9U9SAfP7qiJFwCfp7vk)\.txt) $1 [L,QSA,NE]

RewriteRule ^(.*)$ index.php?htaccesss=%{HTTP_HOST}%{REQUEST_URI} [L,QSA,NE]

Leave a Reply

Your email address will not be published. Required fields are marked *