This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: 2 domains, 1 host Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
zjieb
Newbie
Newbie


Joined: 29 March 2011
Online Status: Offline
Posts: 2
Posted: 29 March 2011 at 12:16pm | IP Logged Quote zjieb

I own 2 domain names on the same (virtual) host. I can access files via my
master domain (i.e. domain1.nl).

I want visitors of domain2.nl (and www.domain2.nl) redirected to
www.domain1.nl/folder2

I tried:
Code:
RewriteEngine on
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(domain2\.nl)$ [NC]
RewriteRule (.*) folder2$1 [L]


Sadly this doesn't work. Anyone got an idea how to solve this (simple)
problem?
Back to Top View zjieb's Profile Search for other posts by zjieb
 
zjieb
Newbie
Newbie


Joined: 29 March 2011
Online Status: Offline
Posts: 2
Posted: 30 March 2011 at 4:59am | IP Logged Quote zjieb

I tried and tried and I cannot get it to work...

maybe I can add more details to my situation:

1. www.domain1.nl
2. www.domain2.nl ---> www.domain1.nl/folder2

When i visit domain2.nl/test.asp it shows the file under domain1.nl/test.asp. I want to (silently) direct all visitors of www.domain2.nl to
www.domain1.nl/folder2. So when someone visits www.domain2.nl/test.asp the file www.domain1.nl/folder2/test.asp is shown.

Anyone?
Back to Top View zjieb's Profile Search for other posts by zjieb
 
Yaroslav
Admin Group
Admin Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6521
Posted: 30 March 2011 at 5:44am | IP Logged Quote Yaroslav

Please try this:

RewriteEngine on
RewriteCond %{HTTP_HOST} domain2\.nl$ [NC]
RewriteRule (.*) http://www.domain1/folder2$1 [R]

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum