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: help with QUERY_STRING
Author
Message |
lentilla
Newbie


Joined: 16 November 2011
Location: Spain
Posts: 6
Posted: 27 January 2012 at 3:10pm

Hi
I need convert this

http://www.habitaka.com/detalles.asp?
idProducto=2039&ruta=regalos-decoracion-dosificador-de-
azucar-verde_2039.asp

to this

http://www.habitaka.com/regalos-decoracion-dosificador-
de-azucar-verde_2039.asp

I make this and don�t work, help me please

thanks
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 30 January 2012 at 4:58am

Hello,

Please, try using the following:

Code:
Rewriteengine on
RewriteBase /

#/detalles.asp?idProducto=2039&ruta=regalos-decoracion-dosificador-de-azucar-verde_2039.asp ---> /regalos-decoracion-dosificador-de-azucar-verde_2039.asp
RewriteCond %{QUERY_STRING} ^idProducto=(\d+)&ruta=(^&_)_\d+\.asp$
RewriteRule ^detalles\.asp$ /%2_%1.asp [NC,R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^_/]+)_(\d+)$ /detalles.asp?idProducto=$2%ruta=%1_%2.asp [NC,L]


Regards
Andrew
Back to Top
 
lentilla
Newbie


Joined: 16 November 2011
Location: Spain
Posts: 6
Posted: 30 January 2012 at 5:11am

thanks
Back to Top
 

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

Printable version Printable version