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: want to redirect just a part of the websi
Author
Message |
ehwh
Newbie


Joined: 22 December 2011
Location: Netherlands
Posts: 2
Posted: 22 December 2011 at 3:35pm

Hello

I can use some help with the following:

Old website has three languages: 1 ( dutch) as domain and
2 (French and English ) in subdir's :

oldwebsite.fr           (dutch )
oldwebsite.fr/fr/      (French)
Oldwebsite.fr/en/       (Englisch)

I made a new website just for the dutch language at a .nl
domain and redirect ( 301 ) all the dutch page's to the
new site
made Rewriterule's for each page: ^pagenaam\.htm$
http://www.newsite.nl/newpagename [R-301]
and for the indexfile ^index\.html$ http://www.newsite.nl
[R=301]
All page's are redirected except when I'm typing in my
browser the olddomainname: www.olddomain.fr it does not
redirect

So I used the following rewriterule ^(.*)$
http://www.newsite.nl/$1 [R=301,L] and put it at the end
of the .htaccess file.

Ok� now when I'm typing the old adres it is redirecting
to the new

But this last Rewriterule redirects also the
oldwebsite/fr/ and oldwebsite/en/ and I want to leave
them where they are for the
moment.
and here'is where I can use some help! Anybody an idea?


Edited by ehwh - 22 December 2011 at 3:35pm
Back to Top Visit ehwh's Homepage
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 26 December 2011 at 4:53am

Hello,

Try using
Code:
RewriteRule ^/?$ http://www.newsite.nl/$1 [R=301,L]

instead of
Code:
RewriteRule ^(.*)$ http://www.newsite.nl/$1 [R=301,L]


Regards
Andrew
Back to Top
 
ehwh
Newbie


Joined: 22 December 2011
Location: Netherlands
Posts: 2
Posted: 26 December 2011 at 5:26am

Thanks Andrew,

That is the solution, it works!

Regards
Eric
Back to Top Visit ehwh's Homepage
 

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

Printable version Printable version