Web Hosting Talk







View Full Version : Web alias question.


nEMESIS4
10-09-2001, 03:38 PM
Just a quick question, if I have domain1.com setup as the virtual site, and domain2.com as an alias.

When I type in domain2.com/test.html it automatically switches it to domain1.com/test.html ..

Is there anyway to make it not switch, so both addresses below access the same file:

domain1.com/test.html
domain2.com/test.html

Chicken
10-09-2001, 06:41 PM
This is a lovely 'feature' of the RaQ's annoying rewrite configuration. I can't stand this and managed to figure out how to get it to NOT do it on a RaQ3, but wasn't able to get it to work on a RaQ4, meh! Sorry, I gave up on this one a long time ago...

:(

If anyone knows, please post it... has been a long time since it has been discussed and maybe the new blood knows.

nEMESIS4
10-10-2001, 08:23 AM
Well I tried turning the rewrite engine off and it seemed to do the trick. Only problem now is it doesn't seem to want to read the index file properly on subdirectories.

For example:

domain1.com/us works
domain2.com/us/index.html works
domain2.com/us redirects to domain1.com/us


One option is to go through the site and change links that read /us [or whatever the subdirectory is, there are multiple ones] and change the linke to /us/index.html.

If there's an easier way please let me know, thanks in advance.

Chicken
10-10-2001, 11:05 AM
Where did you turn off the rewrite engine? Inside each site's VIRTUAL HOST are about 4-5 lines but I wasn't sure if that sort of thing was rewritten (meaning, make a small change in the admin CP and it rewrites over whatever you've modified).

CmptrWz
10-10-2001, 03:13 PM
I solved the problem by taking out the rewrite rule that does that rewrite altogether(on a RAQ4). Really simple. You get psudo-mirroring.

It is 2 conditional statements and the actual rule. Just take them out and you should get both domains pointing to the same spot.