The importer in IIS isn't working for me on this .htaccess files so I am converting manually, but am having a couple of problems.
I think this one is just redirecting any subdomains to the domain name /subdomain? RewriteEngine On #RewriteCond %{HTTP_HOST} !^(.*)\.mysite\.com$ [NC] #RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=Permanent,L]
This one is taking the name and treating it like it has .php on the end, so like mysite.com/login gets treated like mysite.com/login.php <FilesMatch "guestProcess|login|navigate|topics|topic|topic_articles|article|print|email|contact|about|subnavigate|search|fullSearch|account|newPassword|logoutProcess|membership|thankyou">
ForceType application/x-httpd-php </FilesMatch>
I think this is unecessary because IIS already has these handler mappings? AddType application/x-httpd-php .php .php3 .php4 .html .htm
There are quite a few of these ones. They seem strasightforward to me but when I add them into IIS using the management tool they don't seem to work Redirect Permanent /faqs/how-tos/ram-upgrade-faqs-new.html http://www.mysite.com/article/41 Redirect Permanent /faqs/how-tos/ram-upgrade-faqs.html http://www.mysite.com/article/41
Jungalist
Participant
1839 Points
409 Posts
.htaccess -> Web.Config conversion. Stuck on some rules
Mar 21, 2012 02:12 AM|LINK
The importer in IIS isn't working for me on this .htaccess files so I am converting manually, but am having a couple of problems.
I think this one is just redirecting any subdomains to the domain name /subdomain?
RewriteEngine On
#RewriteCond %{HTTP_HOST} !^(.*)\.mysite\.com$ [NC]
#RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=Permanent,L]
This one is taking the name and treating it like it has .php on the end, so like mysite.com/login gets treated like mysite.com/login.php
<FilesMatch "guestProcess|login|navigate|topics|topic|topic_articles|article|print|email|contact|about|subnavigate|search|fullSearch|account|newPassword|logoutProcess|membership|thankyou">
ForceType application/x-httpd-php
</FilesMatch>
I think this is unecessary because IIS already has these handler mappings?
AddType application/x-httpd-php .php .php3 .php4 .html .htm
There are quite a few of these ones. They seem strasightforward to me but when I add them into IIS using the management tool they don't seem to work
Redirect Permanent /faqs/how-tos/ram-upgrade-faqs-new.html http://www.mysite.com/article/41
Redirect Permanent /faqs/how-tos/ram-upgrade-faqs.html http://www.mysite.com/article/41
Any help or tips would be appreciated.
ToughMan
Participant
1490 Points
635 Posts
Re: .htaccess -> Web.Config conversion. Stuck on some rules
Dec 31, 2012 07:56 AM|LINK
Maybe u can ask the question at:
forums.iis.net