wildcard subdomain + domain

pppplus

Verified User
Joined
Dec 19, 2008
Messages
526
Hi,

DOMAIN A.com
I create virtual subdomain without problem.
So xxxx.A.com go open the good pages.

Now, I want use some new domains to point to some specific virtual domain.

For example :
B.com go to bcd.A.com (but always B.com appears for visitors)
C.com go to xyz.A.com (but always C.com appears for visitors)
...

How is it possible ?
How to configure domains I have on my server, but also domains not in my server ?

Thanks for your help, and sorry it is already on the forum, but I do not find it.
 
Sorry, but with .htaccess, the url of the site changes in the address bar.

For example, if I put B.com, no problem to redirect with htaccess to bcd.A.com, but the new site bcd.A.com appears for the visitor.

And I don't want it.

Regards
 
Ok thanks, I don't know this [P]
It works, that's perfect. Thanks ! :)

Another question, always for the same things :

I want to do the same, like Blogger do it (http://help.blogger.com/bin/answer.py?answer=55373)

They ask the owner of domain to create CNAME record
After, they ask to modify settings to their site, to know you are using your own domain. And I suppose, they modify something to do it working ! But what ?
I want to test the same on my domains.

Thanks for your help and replies.
 
No doubt they create name-based hosting on their server, with DocumentRoot pointing to the main site DocumentRoot.

Jeff
 
Hi, I come again to have some help of experts !

I use this line to redirect some domains :

RewriteRule ^(.*) http://domain.tld/$1 [P]
It works fine when the 2 domains are on Server 1
I have a problem when I try to rewrite from a domain on Server 1 to a domain on Server 2

No problem on Server 2, it works in all case.

The 2 servers have directadmin, but I suppose something is a little different.

Can you help me to find where can be the problem ?
I hope my english is clear... Thanks
 
I've found the problem !!

My domain was always registered to server 1 with IP of server 1. I just modify DNS setup for this domain, and put IP of server 2.
So probably the rewriterule read first DNS config on Server instead of DNS config on registrar.
Too hard for me

Now it works fine ! :)
 
New question !

I have a small problem :

Trafic is counted is the 2 domains

=> domains which redirect
=> domains who receive redirection

So, it's a big problem !
Is it possible to have trafic only on the domains hosting files ? And not in domains makng only redirection ?
 
Back
Top