This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite rule conditional Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
acidutzu
Newbie
Newbie


Joined: 05 October 2005
Location: Italy
Online Status: Offline
Posts: 10
Posted: 18 November 2011 at 10:56am | IP Logged Quote acidutzu

Hello i use ISAPI REWRITE 2 full version and have this httpd.ini file now :

Code:

[ISAPI_Rewrite]
RewriteCond %HTTPS off
RewriteCond Host: (?!^www.poshsunglasses.net)(.+)
RewriteRule /(.*) http\://www.poshsunglasses.net/$2 [I,RP]
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule ^([^-]*)-([^-]*)-([^-]*)\.html$

/detail.asp?id=$1&b=$2&m=$3 [L]

RewriteRule (.+)-([^-]*)-([^-]*)-([^-]*)\.asp$

/brands3.asp?brand=$1&keyword=$2 [L]
RewriteCond Host: www\.poshsunglasses\.net
RewriteRule /([^?.]+) http\://www.poshsunglasses.net/ [I,RP]



i'm reffering at this rule
Code:

RewriteRule (.+)-([^-]*)-([^-]*)-([^-]*)\.asp$

/brands3.asp?brand=$1&keyword=$2 [L]


I try to add a multilanguage based on 1 file brands3.asp.

Problem:
if i use www.domain.com/xx this rule works great:
Code:

RewriteRule (.+)-([^-]*)-([^-]*)-([^-]*)\.asp$

/brands3.asp?brand=$1&keyword=$2 [L]


if i use www.domain.com i want this rule to work:
Code:

RewriteRule (.+)-([^-]*)\.asp$

/brands3.asp?brand=$1&keyword=$2 [L]


Any suggestions?
Thank you
Back to Top View acidutzu's Profile Search for other posts by acidutzu Visit acidutzu's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 21 November 2011 at 3:24am | IP Logged Quote Anton

I'm sorry, but I don't quite understand how this

www.domain.com/xx will ever match RewriteRule (.+)-([^-]*)-([^-]*)-([^-]*)\.asp$ /brands3.asp?brand=$1&keyword=$2 [L]
and
www.domain.com will match RewriteRule (.+)-([^-]*)\.asp$ /brands3.asp?brand=$1&keyword=$2 [L]

Please explain...

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum