Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Convert ISAPI Rewrite to .htaccess

Posted on 2009-04-06
1
Medium Priority
?
1,638 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month9 days, 4 hours left to enroll

876 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