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: Redirect 301 of Complex URLs
Author
Message |
companhia
Newbie


Joined: 09 October 2011
Posts: 2
Posted: 09 October 2011 at 5:51pm

[ISAPI_Rewrite]

RewriteCond Host: ^domain\.com.br
RewriteRule (.*) http\://www\.domain\.com.br$1 [I,RP]
RewriteRule /default\.asp?(.+) / [RP]
RewriteRule /default.asp?(.*) /loja/default.asp [RP]
RewriteRule /produtos.asp?
lang=pt_BR&tipo_busca=categoria&codigo_categoria=19&nomep
agina=Strass+em+Metro?(.*) /loja/strass/index.asp [RP]
RewriteRule /produtos_descricao.asp?
lang=pt_BR&codigo_produto=2070?(.*)
/loja/strass/ametista.asp [RP]
RewriteRule /produtos_descricao.asp?
lang=pt_BR&codigo_produto=1307?(.*) /loja/strass/niquel-
free.asp [RP]
RewriteRule /produtos_descricao.asp?
lang=pt_BR&codigo_produto=1307?(.*)
/loja/produtos_descricao.asp?
lang=pt_BR&codigo_produto=1307 [RP]

The last four redirects that have URLs that I'm naming
complex URLs, do not work.

Can somebody inform me if I'm doing something wrong?

ISAPI version 2, dedicated Windows server (cloud), IIS
6.0 .

Thanks in advance.

__________________
Redes de Protecao - Telas de Protecao
Back to Top Visit companhia's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 11 October 2011 at 1:00am

Please try to fix it as follows:

[ISAPI_Rewrite]

RewriteCond Host: ^domain\.com.br
RewriteRule (.*) http\://www\.domain\.com.br$1 [I,RP]
RewriteRule /default\.asp?(.+) / [RP]
RewriteRule /default.asp?(.*) /loja/default.asp [RP]

RewriteRule /produtos\.asp\?lang=pt_BR&tipo_busca=categoria&codigo_categoria=19&nomepagina=Strass+em+Metro.* /loja/strass/index.asp [I,RP]
RewriteRule /produtos_descricao.asp\?lang=pt_BR&codigo_produto=2070.* /loja/strass/ametista.asp [I,RP]
RewriteRule /produtos_descricao.asp\?lang=pt_BR&codigo_produto=1307.* /loja/strass/niquel-free.asp [I,RP]
RewriteRule /produtos_descricao.asp\?lang=pt_BR&codigo_produto=1307.* /loja/produtos_descricao.asp?lang=pt_BR&codigo_produto=1307 [I,RP]

__________________
Regards,
Anton
Back to Top
 
companhia
Newbie


Joined: 09 October 2011
Posts: 2
Posted: 16 October 2011 at 10:22am

congratulations for the excellent explanation, thanks!

__________________
Redes de Protecao - Telas de Protecao
Back to Top Visit companhia's Homepage
 

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

Printable version Printable version