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 Needed redirect 301
Author
Message |
villersfr
Newbie


Joined: 12 October 2011
Posts: 4
Posted: 12 October 2011 at 8:57am

Hello,

We did change our website.

We have a lot of good link on google wich points to old websiteand return of course a 404

I need to be able to redirect some url this way :

From www.vcomm.be/dot/Default.aspx?tabid=199

to : http://www.vcomm.be/fr/Produits.aspx

or

From : www.vcomm.be/dot/Services/Default.aspx

to : http://www.vcomm.be/fr/Support.aspx

In htaccess i already have this code wich is ok for redirect of all the Beta.vcom.be to www.vcomm.be:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^beta.vcomm.be [NC]

RewriteRule ^(.*)$ http://www.vcomm.be/$1 [L,R=301]

Any help would be GREATLY appreciated.

Thank you in advance

Fr�d�ric

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 13 October 2011 at 5:37am

Hello,


To redirect /dot/Default.aspx?tabid=199 --> /fr/Produits.aspx, try using the following code:
Code:
RewriteEngine on
RewriteBase /

RewriteCond %{QUERY_STRING} ^tabid=199$ [NC]
RewriteRule ^dot/Default\.aspx$ /fr/Produits.aspx [NC,R=301,L]


Regards
Andrew

Back to Top
 
villersfr
Newbie


Joined: 12 October 2011
Posts: 4
Posted: 13 October 2011 at 5:57am

Hello Andrew,

Thank you so much for this answer.

I did try your code and we are ALMSOT good

When we type : www.vcomm.be/dot/Default.aspx?tabid=199

it now redirecting to : http://www.vcomm.be/fr/Produits.aspx?tabid=199

the (?tabid=199) can not be in the new url.

it has to redirect to www.vcomm.be/fr/produits.aspx

any idée ?

 

Thank you in advance

 

 

 

 

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 13 October 2011 at 6:28am

Sorry, my bad:
Try this:

RewriteCond %{QUERY_STRING} ^tabid=199$ [NC]
RewriteRule ^dot/Default\.aspx$ /fr/Produits.aspx? [NC,R=301,L]

Regards
Andrew
Back to Top
 
villersfr
Newbie


Joined: 12 October 2011
Posts: 4
Posted: 13 October 2011 at 6:52am

Thank you andrew,

It is working Great :-)

Do you have an idee for the second exemple ?

From : www.vcomm.be/dot/Services/Default.aspx

to : http://www.vcomm.be/fr/Support.aspx

 

and

From : http://www.vcomm.be/dot/Accueil/Achat_photocopieur/tabid/197/language/en-US/Default.aspx

to : http://www.vcomm.be/fr/Support.aspx

 

Thank you in advance

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 14 October 2011 at 5:26am

Try:

# From : /dot/Services/Default.aspx to /fr/Support.aspx
RewriteRule ^dot/Services/Default\.aspx$ /fr/Support.aspx [NC,R=301,L]

You can do the analogue for another one yourself.

Regards
Andrew
Back to Top
 
villersfr
Newbie


Joined: 12 October 2011
Posts: 4
Posted: 14 October 2011 at 5:40am

It rocks !

Thank you verry much for your support.

Frédéric

 

Back to Top
 

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

Printable version Printable version