It is currently Fri Mar 29, 2024 1:02 pm


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: redirect all subdomain to an specific path
PostPosted: Tue Dec 11, 2007 2:25 pm 
Newbie
Newbie

Joined: Tue Dec 11, 2007 2:19 pm
Posts: 2
Hello all,

I have an external domain with freehostia dns server set and added to the control panel, it work well
I have an freeplan and I search for redirect all subdomain to my domain but I haven't found how to ...


for exemple I want :

anysubdomain.domain.com -> to www.domain.com


sorry for my english

Best regard Fabsys


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 4:41 pm 
Moderator
Moderator

Joined: Tue Feb 27, 2007 12:18 am
Posts: 521
Hey

Take a look at this site

http://www.webconfs.com/how-to-redirect-a-webpage.php

It should tell you everything you need about re-directing and more.


Josh.Waller

_________________
http://www.mjmclocks.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 9:44 pm 
Newbie
Newbie

Joined: Tue Dec 11, 2007 2:19 pm
Posts: 2
Thank you Josh.Waller, but it isn't the problem .... the problem come from the configuration of dns ...
I want associate all my subdomain to my account and it isn't the case ...

something like this:

* A IP_of_my_account

I have tryed to find the real path of my path (my web space)

something like this: http://64.72.119.195/www/fabsys.freehostia.com (but it isn't ok)


I just want redirect all subdomain to my www.domain.fr

for exemple

anywhere.d0t.fr -> www.d0t.fr
xxxxxxxx.d0t.fr -> www.d0t.fr
allsubdomain.d0t.fr -> www.d0t.fr



fabsys@ubuntu:~$ host d0t.fr ------> it's OK
d0t.fr has address 64.72.119.195
d0t.fr mail is handled by 10 mbox50.freehostia.com.

fabsys@ubuntu:~$ host www.d0t.fr ------> it's OK
www.d0t.fr has address 64.72.119.195

fabsys@ubuntu:~$ host other.d0t.fr ------> it's not OK
other.d0t.fr has address 62.210.183.12 ---> my ISP notify me "there aren't website set on this adress
Host other.d0t.fr not found: 3(NXDOMAIN)
Host other.d0t.fr not found: 3(NXDOMAIN)

fabsys@ubuntu:~$ host subdomain.d0t.fr ------> it's not OK
subdomain.d0t.fr has address 62.210.183.12 ---> my ISP notify me "there aren't website set on this adress
Host subdomain.d0t.fr not found: 3(NXDOMAIN)
Host subdomain.d0t.fr not found: 3(NXDOMAIN)


I need to configure the dns for Answer to all (any) subdomains .....


fabsys@ubuntu:~$ whois d0t.fr
...
domain: d0t.fr
address: Ano Nymous
admin-c: ANO00-FRNIC
tech-c: TCP8-FRNIC
zone-c: NFC1-FRNIC
nserver: dns1.freehostia.com --> managed by freehostia dns OK
nserver: dns2.freehostia.com --> managed by freehostia dns OK
mnt-by: FR-NIC-MNT
mnt-lower: FR-NIC-MNT
changed: nic@nic.fr 20071211
source: FRNIC
.....


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 12, 2007 2:18 pm 
Moderator
Moderator

Joined: Tue Feb 27, 2007 12:18 am
Posts: 521
Oh i see interesting one, i shall have a think about it and get back to you.

_________________
http://www.mjmclocks.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 12, 2007 2:24 pm 
Moderator
Moderator

Joined: Tue Feb 27, 2007 12:18 am
Posts: 521
.htaccess
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain.domain.com
RewriteRule ^(.*) http://www.domain.com/$1 [L,R=301]


http://forums.digitalpoint.com/showthread.php?t=45759

_________________
http://www.mjmclocks.co.uk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011