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.
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.
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
THanks,
GUelila.
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...
)
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
Thanks anyways,
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?
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.
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...