htaccess modification is not working in x10hosting?

Status
Not open for further replies.

espanavs

New Member
Messages
3
Reaction score
0
Points
1
Hi everybody,

I managed to forward my x10hosting domain to the .tk domain I wanted. BUT now I can´t make the address bar shows my .tk domain instead of the x10hosting.
Example: User types http://espanavsengland.tk and its forwarded to http://espanavsengland.x10hosting.com/blog. But I want to show in the address bar http://espanavsengland.tk.

Here is the code I added:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^espanavsengland\.tk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.espanavsengland\.tk$
RewriteRule ^(.*) espanavsengland\.tk/$1 [P]

Can someone tell me if it´s me doing something wrong or x10hosting does not allow this functionality?

Best regards,

Yedi
 

sudomanx

New Member
Messages
13
Reaction score
0
Points
1
When I configured my .cf domain, I think I used the CPanel "Parked Domains" tool. Then, I needed to configure my domain-name registrar to point to the proper x10 nameservers.
 

espanavs

New Member
Messages
3
Reaction score
0
Points
1
When I configured my .cf domain, I think I used the CPanel "Parked Domains" tool. Then, I needed to configure my domain-name registrar to point to the proper x10 nameservers.

Hi Sudomanx,

Thanks for your reply. I did that already and the .tk domain is pointing to the x10hosting one. BUT when the final address is reached, the name on the address bar is http://espanavsengland.x10hosting.com/blog instead of http://espanavsengland.tk.

I hope it make sense now.

Regards,

Yedi
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
People cannot use *.x10hosting.com, only *.x10host.com
Is there anything in the htaccess file that mentions the default sub-domain?
 

espanavs

New Member
Messages
3
Reaction score
0
Points
1
People cannot use *.x10hosting.com, only *.x10host.com
Is there anything in the htaccess file that mentions the default sub-domain?

Hi Caftpx10,

Sorry, you´re right, the domain is *.x10host.com.
And you can see my current htaccess file on the top of this post. There is no mention to x10host domains at all. If that is what you mean.

Regards,

Yedi
 

sudomanx

New Member
Messages
13
Reaction score
0
Points
1
I think you need to do this in two steps. First, setup the hostname like:

RewriteEngine on
AuthName espanavsengland.x10host.com
RewriteCond %{HTTP_HOST} ^espanavsengland.tk$
RewriteRule ^(.*)$ "http\:\/\/www\.espanavsengland\.tk\/$1" [R=301,L]

Then, setup WordPress to respond to the the root domain. Have you read:
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
 
Status
Not open for further replies.
Top