FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Direct admin question - Pointing domains to subdomains.





Guelila
Hello.
I am used to cpanel, but this DirectAdmin is confusing me a little bit.
I checked both of the tutorials, but I couldnt find the answer.

here is my question.

Lets say I have the following subdomain: mysite.myhosting.frih.net .
I want to register a domain : Mysite.com

How do I make Mysite.com to point at mysite.myhosting.frih.net?

All help will be appreciated.
Thanks.
silverdown
Well this way I do it is by .htaccess and the way to do it is with the script below.

Just add or insert this into a htaccess document.
Code:
Redirect 301 / http://www.example.com/


Hope it helps you.
Guelila
hello, I didnt quite understand your answer.
I tried the domain pointer option in Direct Admin, but it only allows me to point it to myhosting.frih.net and not mysite.myhosting.frih.net .

Basically, what I want to do is point a newly registered domain to a subdomain that I made for my account.

Someone please help me out here Smile

THanks,
GUelila.
swizzy
do you have a parked domain or a domain with hosting???

if you have a domain with hosting... then put the .htaccess frile with in the root with this lines...
(replace mysite, myhosting with your details...)

Code:

# send visitors to a frih sub-subdomain
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^mysite\.myhosting\.frih\.net$ [NC]
RewriteRule ^/(.*)$ http://mysite.myhosting.frih.net/$1 [L,R=301]


Reply with results (hopefully, this should work... Razz )
Guelila
Thanks swizzy.
I didnt exactly do it as you told me, but i went to my domain registrar and they had the domain redirecting service so I decided to try it this way.
Now Im just waiting for the nameservers to change Very Happy

Thanks anyways,
GUelila.
Guelila
OK.. now I have this weird problem.
I can login fine when I go to tkf2.fnet.frih.net, but when I go to the domain i registered (thekoreanforum.com, which is redirected to my site), when I try to login, it says "cookies must be enabled" and wont let me or anyone login.
I can login fine when I use the original link. (tkf2.fnet.frih.net)

It's so weird that I get that error when I use my domain name.

Any idea on what the problem is?
mathiaus
You'll probably need to change your forum's configuration. It's likely that its currently creating cookies under the domain tkf2.fnet.frih.net which don't exist when the different thekoreanforum.com domain is visited.
swizzy
go to phpmyadmin > your phpbb db > search for "tkf2.fnet.frih.net" in all tables and then replace with thekoreanforum.com

should fix your problem... but in any case... backup before you begin...
Related topics
Direct admin behind firewall Script Test this one...
Direct Admin
Direct Admin problem
Need direct admin
Direct Admin
Direct Admin Skin?
Why direct admin
Direct Admin password invalid?
[Ayuda] Dominio y Direct Admin
Website Not Loading For 2 Days
Bad news about the Server 2
Accessing Direct Admin With Aol
Do not understand the Direct Admin. HELP!!
Need help with installing Joomla on my Direct Admin
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.