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: rewrite rule
Author
Message |
lentilla
Newbie


Joined: 16 November 2011
Location: Spain
Posts: 6
Posted: 16 November 2011 at 5:48am

Hola quisiera hacer el siguiente rewrite

desde
http://www.midominio.com/guias/centro.asp?
Sec=Inmo&IdSec=7
ir a
http://www.midominio.com

y he escrito lo siguiente

RewriteRule guias/.*?\.asp http://www.midominio.com
[I,L,RP]

y no me lo hace bien pues va a
http://www.midominio.com/?Sec=Inmo&IdSec=7

Me pod�is ayudar

gracias de antemano
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 16 November 2011 at 8:01am

Me parece, que usas version 3 de ISAPI_Rewiete, no?
Si es verdad, utiliza siguientes reglas:

RewriteBase /
RewriteCond %{QUERY_STRING} ^.+$
RewriteRule ^guias/.*?\.asp$ http://www.midominio.com? [NC,R=301,L]

__________________
Regards,
Anton
Back to Top
 
lentilla
Newbie


Joined: 16 November 2011
Location: Spain
Posts: 6
Posted: 16 November 2011 at 8:59am

Muchas gracias me ha funcionado
Back to Top
 

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

Printable version Printable version