Solved

Convert ISAPI Rewrite to .htaccess

Posted on 2009-04-06
1
1,577 Views
Last Modified: 2012-05-06
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]

Open in new window

0
Comment
Question by:comeran
1 Comment
 
LVL 5

Accepted Solution

by:
comeran earned 0 total points
ID: 24084812
Ok I figured it out. In case others need to do this look at what it was above and what it now is below
Options +FollowSymlinks

RewriteEngine on
 

RewriteCond %{HTTP_HOST} ^domain\.com [NC]

RewriteRule ^(.*) http://www.domain.com/$1 [R,L]
 

RewriteRule     ^index.html$                                    index.cgi                                               [L]
 

RewriteRule     ^golf-apparel-details/(.*).html$                index.cgi?pid=$1                                        [L]
 

RewriteRule     ^team-btl/(.*).html$                            index.cgi?page=$1.html                                  [L]
 

RewriteRule     ^golf-directory/(.*).html$                      index.cgi?page=$1.html                                  [L]
 

RewriteRule     ^golf-apparel/polos.html$                       index.cgi?exact_match=yes&product=polos                 [L]

RewriteRule     ^golf-apparel/mocks.html$                       index.cgi?exact_match=yes&product=mocks                 [L]

RewriteRule     ^golf-apparel/limited.html$                     index.cgi?exact_match=yes&product=limited               [L]

RewriteRule     ^golf-apparel/hats.html$                        index.cgi?exact_match=yes&product=hats                  [L]

RewriteRule     ^golf-apparel/tees.html$                        index.cgi?exact_match=yes&product=tee                   [L]

RewriteRule     ^golf-apparel/accessories.html$                 index.cgi?exact_match=yes&product=accessories           [L]

RewriteRule     ^golf-apparel/ladies.html$                      index.cgi?exact_match=yes&product=ladies                [L]
 

RewriteRule     ^customer-service/(.*).html$                    index.cgi?page=$1.html                                  [L]

RewriteRule     ^sponsorships/(.*).html$                        index.cgi?page=$1.html                                  [L]

RewriteRule     ^school-discounts/(.*).html$                    index.cgi?page=$1.html                                  [L]

RewriteRule     ^corporate-discounts/(.*).html$                 index.cgi?page=$1.html                                  [L]

RewriteRule     ^wholesale-center/(.*).html$                    index.cgi?page=$1.html                                  [L]

Open in new window

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now