Need my domain to work

Status
Not open for further replies.

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
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.
 

lylex10h

Active Member
Messages
982
Reaction score
71
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
 

battles5

New Member
Messages
6
Reaction score
0
Points
1
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
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
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
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.
 

battles5

New Member
Messages
6
Reaction score
0
Points
1
When I park the domain all it does it redirect battlesquads.tk to battledsquads.x10host.com, I need to mask the x10host
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
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.
 
Status
Not open for further replies.
Top