Redirect 301 with comma in the URL

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 10
Joined: 20 Nov 2012, 10:56

Redirect 301 with comma in the URL

20 Nov 2012, 11:00

Dear all,

I would like to make a 301 redirect from this URL :
http://www.anatum.com/FR/Bagages,et,voy ... gories.awp

to this URL
http://www.anatum.com/sacs-bagages-et-m ... gories.awp

what is the simpliest way to make it ?

BR
Patrice

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Redirect 301 with comma in the URL

20 Nov 2012, 23:57

Hello,

The simpliest way would be:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:Host} ^www\.anatum\.com$ [NC]
RewriteRule ^FR/Bagages,et,voyages,publicitaire-categories\.awp$ /sacs-bagages-et-maroquinerie-categories.awp [NC,R=301,L]



Regards
Andrew

User avatar
Posts: 10
Joined: 20 Nov 2012, 10:56

Re: Redirect 301 with comma in the URL

22 Nov 2012, 05:07

Thank you very much Andew !

It works very well

BR
Patrice

User avatar
Posts: 10
Joined: 20 Nov 2012, 10:56

Re: Redirect 301 with comma in the URL

22 Nov 2012, 06:02

I have an other question

How to redirect
http://www.anatum.com/FR/something.awp to http://www.anatum.com/something.awp

BR
Patrice

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Redirect 301 with comma in the URL

22 Nov 2012, 12:33

you want to redirect one page only or you want the rule to hide FR for all pages?

regards
Andrew

User avatar
Posts: 10
Joined: 20 Nov 2012, 10:56

Re: Redirect 301 with comma in the URL

23 Nov 2012, 06:02

In fact i would like to cancel all the FR from all the pages

If you can help me

Thank you

BR
Patrice

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Redirect 301 with comma in the URL

23 Nov 2012, 12:51

The redirect rule would look like:

Code: Select all
RewriteRule ^FR/(.*) /$1 [NC,R=301,L]


Regards
Andrew

User avatar
Posts: 24
Joined: 27 Nov 2012, 21:57

Re: Redirect 301 with comma in the URL

27 Nov 2012, 22:16

This is only applicable for running FRs, right?

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Redirect 301 with comma in the URL

28 Nov 2012, 00:53

Yes, all paths that start with FR folder.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 7 guests