Change default domain name

aleangelico

New Member
Hii everybody

I created my VPS account with a domina name, but now I want to change it, Is this something I can do? If so, how? I dont even know where to start

Thanks
 
Hello aleangelico,

Do you mean you would like to change the host name?

In WHM under Networking Setup you can change the host name.

If that's not what you mean just let us know and we'll go from there :)
 
Thanks Dan, in fact I wanted to change not just the host name, but the whole domain.
It's done, Kira from support helped me. I copy the steps here just in case somebody else need it:

1. WHM >> Main >> Account Functions >> Modify an Account >> Click on the domain name you want to change >> Modify >> Change the primary domain name >> Save

2. Then you have to change the hostname of the server from WHM as follows.
WHM >> Main >> Networking Setup >> Change Hostname >> Give the new hostname >> Change

3. send an email to support asking them to create the revers DNS record (PTR record) with the new domain name.
 
301 redirect error in htaccess

when i create .htaccess file
and i insert this code

RewriteEngine on
RewriteCond %{HTTP_HOST} ^
RewriteRule ^(.*)$ [R=301,L]

but it comes error like this

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mydomaincom and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.



anyone can help, why?
 
Top