Topic: RewriteRule problem
|

|
| Author |
|
guillermo Newbie

Joined: 04 February 2010 Location: Argentina
Online Status: Offline Posts: 4
|
| Posted: 04 February 2010 at 6:54am | IP Logged
|
|
|
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 |
|
| |
guillermo Newbie

Joined: 04 February 2010 Location: Argentina
Online Status: Offline Posts: 4
|
| Posted: 04 February 2010 at 6:55am | IP Logged
|
|
|
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 |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 9125
|
| Posted: 04 February 2010 at 7:17am | IP Logged
|
|
|
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 |
|
| |
guillermo Newbie

Joined: 04 February 2010 Location: Argentina
Online Status: Offline Posts: 4
|
| Posted: 04 February 2010 at 7:41am | IP Logged
|
|
|
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 |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 9125
|
| Posted: 05 February 2010 at 2:59am | IP Logged
|
|
|
"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 |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|