Hi,
I have a website running on the old iis and works fine. But when put on the new server it does not work because of the re-write rules and i believe the new iis does not use the http.ini files.
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
#Simple rules
RewriteRule .*/404.html /404.asp [L,I,O]
RewriteRule .*/500.html /500.asp [L,I,O]
RewriteRule .*/contact/ /contact.asp [L,I,O]
RewriteRule .*/product/ /product.asp [L,I,O]
RewriteRule .*/sitemap/ /sitemap.asp [L,I,O]
RewriteRule .*/literature/thanks.html /thanks.asp [L,I,O]
RewriteRule .*/documents/thanks.html /thanks2.asp [L,I,O]
RewriteRule .*/faq/([0-9]+)?/?([0-9]+)?/?(.*\.html)? /faq.asp [L,I,O]
RewriteRule .*/faq-form/ /faq-form.asp [L,I,O]
RewriteRule .*/quote/ /quote.asp [L,I,O]
RewriteRule .*/links/(\?.*)? /links.asp$1 [I,L]
RewriteRule .*/links/([0-9]+)?/?([0-9]+)?/?(.*\.html)? /links.asp(?1\?cat=$1:)(?2&id=$2:) [L,I,O]
RewriteRule .*/open-account/ /openAccount.asp [L,I,O]
RewriteRule .*/bsscomm/ / [L,I,O]
RewriteRule .*/suppliers/(\?.*)? /suppliers.asp$1 [I,L]
RewriteRule .*/suppliers/([0-9]+)?/?([0-9]+)?/?(.*\.html)? /suppliers.asp(?1\?cat=$1:)(?2&id=$2:) [L,I,O]
#Rules with query strings
RewriteRule .*/content/([0-9]+)?/?([0-9]+)?/?(.*\.html)? /content.asp(?1\?area=$1:)(?2&id=$2:) [L,I,O]
RewriteRule .*/media-centre/?([0-9]+)?/?([0-9]+)?/?(.*\.html)?(\?)?(.*)? /news.asp\?(?1cat=$1:)(?2&id=$2:)(?4&$5) [L,I]
RewriteRule .*/media/?([0-9]+)?/?([0-9]+)?/?(.*\.html)?(\?)?(.*)? /media.asp\?(?1cat=$1:)(?2&id=$2:)(?4&$5) [L,I] RewriteRule .*/download/?([0-9]+)?/?(.*)? /download.asp(?1\?id=$1:) [L,I,O]
RewriteRule .*/literature/?([0-9]+)?/?(.*)? /brochures.asp(?1\?id=$1:) [L,I,O]
RewriteRule .*/supplier-literature/?([0-9]+)?/?(.*)? /literature.asp(?1\?id=$1:) [L,I,O]
RewriteRule .*/documents/?([0-9]+)?/?(.*)? /documents.asp(?1\?id=$1:) [L,I,O]
RewriteRule .*/search/(\?.*)? /search.asp$1 [I,L]
RewriteRule .*/locator/(\?.*)? /locator.asp$1 [I,L]
# THIS MUST COME LAST!! Catch-all rule...
RewriteRule .*/(\?.*)? /default.asp$1 [L,I]
How do i convert this file?
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
#Simple rules
RewriteRule .*/404.html /404.asp [L,I,O]
RewriteRule .*/500.html /500.asp [L,I,O]
RewriteRule .*/contact/ /contact.asp [L,I,O]
RewriteRule .*/product/ /product.asp [L,I,O]
RewriteRule .*/sitemap/ /sitemap.asp [L,I,O]
RewriteRule .*/literature/thanks.html /thanks.asp [L,I,O]
RewriteRule .*/documents/thanks.html /thanks2.asp [L,I,O]
RewriteRule .*/faq/([0-9]+)?/?([0-9]+)?/?(.*\.html)? /faq.asp [L,I,O]
RewriteRule .*/faq-form/ /faq-form.asp [L,I,O]
RewriteRule .*/quote/ /quote.asp [L,I,O]
RewriteRule .*/links/(\?.*)? /links.asp$1 [I,L]
RewriteRule .*/links/([0-9]+)?/?([0-9]+)?/?(.*\.html)? /links.asp(?1\?cat=$1:)(?2&id=$2:) [L,I,O]
RewriteRule .*/open-account/ /openAccount.asp [L,I,O]
RewriteRule .*/bsscomm/ / [L,I,O]
RewriteRule .*/suppliers/(\?.*)? /suppliers.asp$1 [I,L]
RewriteRule .*/suppliers/([0-9]+)?/?([0-9]+)?/?(.*\.html)? /suppliers.asp(?1\?cat=$1:)(?2&id=$2:) [L,I,O]
#Rules with query strings
RewriteRule .*/content/([0-9]+)?/?([0-9]+)?/?(.*\.html)? /content.asp(?1\?area=$1:)(?2&id=$2:) [L,I,O]
RewriteRule .*/media-centre/?([0-9]+)?/?([0-9]+)?/?(.*\.html)?(\?)?(.*)? /news.asp\?(?1cat=$1:)(?2&id=$2:)(?4&$5) [L,I]
RewriteRule .*/media/?([0-9]+)?/?([0-9]+)?/?(.*\.html)?(\?)?(.*)? /media.asp\?(?1cat=$1:)(?2&id=$2:)(?4&$5) [L,I] RewriteRule .*/download/?([0-9]+)?/?(.*)? /download.asp(?1\?id=$1:) [L,I,O]
RewriteRule .*/literature/?([0-9]+)?/?(.*)? /brochures.asp(?1\?id=$1:) [L,I,O]
RewriteRule .*/supplier-literature/?([0-9]+)?/?(.*)? /literature.asp(?1\?id=$1:) [L,I,O]
RewriteRule .*/documents/?([0-9]+)?/?(.*)? /documents.asp(?1\?id=$1:) [L,I,O]
RewriteRule .*/search/(\?.*)? /search.asp$1 [I,L]
RewriteRule .*/locator/(\?.*)? /locator.asp$1 [I,L]
# THIS MUST COME LAST!! Catch-all rule...
RewriteRule .*/(\?.*)? /default.asp$1 [L,I]
How do i convert this file?