How to translate this .htaccess to web.config file to work properly, and is it right name web.config of that file?
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ http://www.mynedomain.com/$1 [R=302,L]
How to translate this .htaccess to web.config file to work properly, and is it right name web.config of that file?
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ http://www.mynedomain.com/$1 [R=302,L]
Yes, this is in
web.config
file that you have to do it.You can add a
rewrite
block into it for your ruleIn your htaccess code, you have a
302
redirect (that's why i usedFound
in the rule).If you want instead a
301
redirect, replaceFound
byPermanent
in the action tag of the rule.