RewriteEngine On
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?:www.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://%2%3 [R=301,L]
RewriteCond %{HTTP_Host} ([^.]+).itsprofile.com$ [NC]
RewriteRule (.*) http://itsprofile.com/viewindex.php$1?id =%1 [NC,L]
RewriteEngine On RewriteCond %{HTTPS} (on)? RewriteCond %{HTTP:Host} ^(?:www.)(.+)$ [NC] RewriteCond %{REQUEST_URI} (.+) RewriteRule .?
Share
When you say convert to web.config, I’m going to assume you mean convert .htaccess rewrite rules to IIS URL Rewrite rules. You can find information about importing .htaccess rules to IIS URL Rewrite here.
Your rewrite rules above would be imported and converted to this:
Naturally, you’ll want to test all of your rules.