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: redirecting language URL to generic URL
Author
Message |
janmontano
Newbie


Joined: 12 September 2011
Location: Australia
Posts: 15
Posted: 29 September 2011 at 1:50am

I would like a URL pattern like:

http://www.masterpet.com/en/Dogs/Caring-for-dogs/Doggy-
poo-etiquette/

redirected to

http://www.masterpet.com/Dogs/Caring-for-dogs/Doggy-poo-
etiquette/

removing the "/en" in the process. How do I do it?

http://www.masterpet.com/en/blah/mysite2/index.htm
should be
http://www.masterpet.com/blah/mysite2/index.htm

http://www.masterpet.com/en/blah/
should be
http://www.masterpet.com/blah/

Thanks in advance.

__________________
http://www.kokoness.com.au
Back to Top Visit janmontano's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 29 September 2011 at 2:08am

Please try the following lines:

RewriteBase /
RewriteRule ^en(/.*)$ $1 [NC,R=301,L]

__________________
Regards,
Anton
Back to Top
 

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

Printable version Printable version