comeran
asked on
Convert ISAPI Rewrite to .htaccess
How do I convert this Helicon ISAPI Rewrite file into Apache .htaccess?
[ISAPI_Rewrite]
RewriteCond %HTTPS (on)|.*
RewriteCond Host: (?!(?:www|mail)\.)(.*)
RewriteRule (.*) http(?1s:)\://www.$2$3 [I,RP]
RewriteRule /index.html /index.cgi [I,L]
RewriteRule /golf-apparel-details/(.*).html /index.cgi\?pid=$1 [I,L]
RewriteRule /team-btl/(.*).html /index.cgi\?page=$1.html [I,L]
RewriteRule /golf-directory/(.*).html /index.cgi\?page=$1.html [I,L]
RewriteRule /golf-apparel/polos.html /index.cgi\?exact_match=yes&product=polos [I,L]
RewriteRule /golf-apparel/mocks.html /index.cgi\?exact_match=yes&product=mocks [I,L]
RewriteRule /golf-apparel/limited.html /index.cgi\?exact_match=yes&product=limited [I,L]
RewriteRule /golf-apparel/hats.html /index.cgi\?exact_match=yes&product=hats [I,L]
RewriteRule /golf-apparel/tees.html /index.cgi\?exact_match=yes&product=tee [I,L]
RewriteRule /golf-apparel/accessories.html /index.cgi\?exact_match=yes&product=accessories [I,L]
RewriteRule /golf-apparel/ladies.html /index.cgi\?exact_match=yes&product=ladies [I,L]
RewriteRule /customer-service/(.*).html /index.cgi\?page=$1.html [I,L]
RewriteRule /sponsorships/(.*).html /index.cgi\?page=$1.html [I,L]
RewriteRule /school-discounts/(.*).html /index.cgi\?page=$1.html [I,L]
RewriteRule /corporate-discounts/(.*).html /index.cgi\?page=$1.html [I,L]
RewriteRule /wholesale-center/(.*).html /index.cgi\?page=$1.html [I,L]
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.