Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: RewriteRule problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
guillermo
Newbie
Newbie


Joined: 04 February 2010
Location: Argentina
Online Status: Offline
Posts: 4
Posted: 04 February 2010 at 6:54am | IP Logged Quote guillermo

hi i have a problem with this redirection, updates the version of isapi-2 before with the older version worked this rule.

RewriteCond %{HTTP_HOST} ^www.*

RewriteRule /(?!.+\.css|.+\.gif|.+\.jpg|.+\.png|.+\.bmp|.+\.js|.+\.swf|.+\.htc|.+\.ico|.+\.cgi|\?.+)((?!.+\.asp).+) http://www.zonajobs.com.ar/empleo/$1$2 [R=301,L]


the idea behind this rule is that everything qte redirection does not end in the period mentioned there extensions to a particular page

Please help me





__________________
hello
Back to Top View guillermo's Profile Search for other posts by guillermo
 
guillermo
Newbie
Newbie


Joined: 04 February 2010
Location: Argentina
Online Status: Offline
Posts: 4
Posted: 04 February 2010 at 6:55am | IP Logged Quote guillermo

guillermo wrote:
hi i have a problem with this redirection, updates the version of isapi-2 before with the older version worked this rule.

RewriteCond %{HTTP_HOST} ^www.*

RewriteRule /(?!.+\.css|.+\.gif|.+\.jpg|.+\.png|.+\.bmp|.+\.js|.+\.swf|.+\.htc|.+\.ico|.+\.cgi|\?.+)((?!.+\.asp).+) http://www.prueba.com.ar/empleo/$1$2 [R=301,L]


the idea behind this rule is that everything qte redirection does not end in the period mentioned there extensions to a particular page

Please help me





__________________
hello
Back to Top View guillermo's Profile Search for other posts by guillermo
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 9125
Posted: 04 February 2010 at 7:17am | IP Logged Quote Anton

If you are using ISAPI_Rewrite 2, the rules should be:

RewriteCond Host: www.*
RewriteRule /(?!.+\.(?:css|gif|jpg|png|bmp|js|swf|htc|ico|cgi|asp|\?.+)(.+) http://www.zonajobs.com.ar/empleo/$1 [I,RP]

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


Joined: 04 February 2010
Location: Argentina
Online Status: Offline
Posts: 4
Posted: 04 February 2010 at 7:41am | IP Logged Quote guillermo

Anton wrote:
If you are using ISAPI_Rewrite 2, the rules should be:

RewriteCond Host: www.*
RewriteRule /(?!.+\.(?:css|gif|jpg|png|bmp|js|swf|htc|ico|cgi|asp|\?.+)(.+) http://www.zonajobs.com.ar/empleo/$1 [I,RP]



thanks for the help but did not work.

I put the rule and if nevegar www.misite.com.ar/test.htm for example I redirect to the page I want.

if someone realizes the error please notify
thanks



__________________
hello
Back to Top View guillermo's Profile Search for other posts by guillermo
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 9125
Posted: 05 February 2010 at 2:59am | IP Logged Quote Anton

"I put the rule and if nevegar www.misite.com.ar/test.htm for example I redirect to the page I want." - and what's wrong in this behavior?
What result do you expect?

__________________
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