This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: All rules not working
Author
Message |
AnupGavate
Newbie


Joined: 19 October 2005
Location: United Kingdom
Posts: 13
Posted: 06 March 2012 at 2:27pm

Hi

I worked on Helicon ISAPI Rewrite rules long back, around 6-7 years back. Got very good results in SEO rankings.

Currently working with latest version ISAPI/Rewrite/3. I tried and converted old rules (ISAPI/Rewrite/2) to match with current version and modified for optimization.

Please find code below written with-in .htaccess file:

# ###############################################################################################################
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# Unsupported directive: [ISAPI_Rewrite]

# 3600 = 1 hour
# Unsupported directive: CacheClockRate 3600

# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).*$ / [NC,F,O]
#  Block external access to the Helper ISAPI Extension
RewriteRule ^.*\.isrwhlp$ / [NC,F,O]
# ###############################################################################################################
# Include www if not present
RewriteCond %{HTTP:Host} ^mydomainname\.com$
RewriteRule (.*) http\://www.mydomainname.com$1 [NC,R=301]

# Few hard-coded URLs
RewriteRule ^/testimonials/ /html/testimonials.asp [NC,L]
RewriteRule /terms-and-conditions/ /html/terms-and-conditions.asp [NC,L]
RewriteRule /privacy-policy/ /html/privacy-policy.asp [NC,L]
RewriteRule /faqs/ /html/faqs.asp [NC,L]
RewriteRule ^/contact-us/ /html/contact-us.asp [NC,L]
RewriteRule ^/my-basket/ /html/my-basket.asp [NC,L]
RewriteRule ^/thank-you/ /html/thank-you.asp [NC,L]

# Rules for dynamic pages
RewriteRule ^/([^/]+)/ /html/category.asp\?category-name=$1 [NC,L]
RewriteRule ^/([^/]+)/([^/]+)/ /html/product-details.asp\?category-name=$1&product-name=$2 [NC,L]
RewriteRule ^/([^/]+)/([^/]+)/([^/]+)/ /html/product-options.asp\?category-name=$1&product-name=$2&colour-option=$3 [NC,L]
RewriteRule ^/([^/]+)/([^/]+)/([^/]+)/([^/]+)/ /cart/product-other-options.asp\?category-name=$1&product-name=$2&colour-option=$3&other-option=$4 [NC,L]
# ###############################################################################################################
<Helicon>
ProxySuppressErrors Off
</Helicon>
# ###############################################################################################################

Here i see only first rule is working and not others.
Can you please look in to correct me where i went wrong while building rules.

Thanks.



Edited by AnupGavate - 06 March 2012 at 2:29pm


__________________
regards,

Anup Gavate
Back to Top
 
HeliconA
Admin Group


Joined: 02 March 2012
Posts: 4142
Posted: 07 March 2012 at 5:25am

Hello,

You no longer need the following lines:
Code:
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).*$ / [NC,F,O]
# Block external access to the Helper ISAPI Extension
RewriteRule ^.*\.isrwhlp$ / [NC,F,O]


There's an assumption, that you may need to erase '/' in front of matching pattern.

What is great about ISAPI_Rewrite 3 is that it has logging. Insert the following code in httpd.conf:

Code:
#enabling rewrite.log
RewriteLogLevel 9
#enabling error.log
LogLevel debug


You'll find rewrite.log in ISAPI_Rewrite installation folder. Provide that log, please.

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version