Need my domain to work

Discussion in 'Free Hosting' started by battles5, Jan 9, 2018.

  1. battles5

    battles5 New Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I have the domain http://battlesquads.tk
    I want this domain to be the MAIN one and mask my x10hosting domain. Can a staff member please help me out, thank you.
     
  2. Livewire

    Livewire Abuse Compliance Officer Staff Member

    Messages:
    18,098
    Likes Received:
    209
    Trophy Points:
    63
    At this time we aren't able to set your main domain to anything other than an x10hosting provided one; in the event you would ever lose your .tk domain, if your main domain was changed, your website would effectively become inaccessible, an issue we ran into a few years ago when a popular free domain provider imploded and disappeared in a handful of days.

    To make battlesquads.tk act as though it were your main domain, you'd want to use it as a Parked Domain in cPanel.
     
  3. lylex10h

    lylex10h Active Member

    Messages:
    508
    Likes Received:
    32
    Trophy Points:
    28
    You can "mask" your x10hosting domain using some .htaccess code such as:
    Code:
    # Redirect user.x10host.com/abc to battlesquads.tk/abc
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^user.x10host.com$
    RewriteRule ^(.*)$ http://battlesquads.tk/$1 [R=301,L]
    # End Redirect user.x10host.com/abc to battlesquads.tk/abc 
     
    • Informative Informative x 1
  4. battles5

    battles5 New Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    So upon me inputting that into the htaccess, will that auto mask my x10host domain? Also do I still need to park battlesquads.tk to http://battlesquads.x10host.com
     
  5. Anna

    Anna I am just me Staff Member

    Messages:
    8,323
    Likes Received:
    230
    Trophy Points:
    63
    The parking is the most vital part actually, that is what ensures that the requests to the server are recognised and that the response is with the correct content.

    The .htaccess part is technically not needed, it just makes sure that if someone happens to come across the x10host.com domain they are redirected to the proper one you want them to use. Many cms actually handles this internally if they are properly configured to use the domain you wish people to see.
     
  6. battles5

    battles5 New Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    When I park the domain all it does it redirect battlesquads.tk to battledsquads.x10host.com, I need to mask the x10host
     
  7. battles5

    battles5 New Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Can someone please help me out? Would be greatly appreciated...
     
  8. Livewire

    Livewire Abuse Compliance Officer Staff Member

    Messages:
    18,098
    Likes Received:
    209
    Trophy Points:
    63
    Your .htaccess is forcing a bad redirect:

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^battlesquads\.tk$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.battlesquads\.tk$
    RewriteRule ^/?$ "http\:\/\/battlesquads\.x10host\.com" [R=301,L]
    
    To fix this I renamed your .htaccess to .htaccess.bak, and that solved it. Your rewrite rules in that .htaccess file boil down to this: If the domain is battlesquads.tk, redirect to battlesquads.x10host.com.

    You can either rewrite it to convert battlesquads.x10host.com to battlesquads.tk, or you could just not use it, which will leave it as whatever the user typed to get there.
     

Share This Page