Parked Domain or Addon

Asked by:
HubFans / n/a Points
Time:
2018-04-06 9:21 am EST
Category:
Domain Names
Hits:
142
Hi. I am not technically advanced, so please bear with me. I have a domain now but want a new url that will point to my current website, however, I want the new domain url to show in the address line (not the primary url). Can I do this with a new "parked domain"? If not, then I'll likely just add an addon domain with it's own website that is similar to my primary site.
Thanks for your input.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
17,314 Points
2018-04-06 4:05 pm EST
Hello,

Thanks for your question about using a Parked domain or addon domain. First, the Parked domain is now called an "Alias" in the cPanel. The best way to handle this is to add a rewrite command in your .htaccess file. If you are unfamiliar with editing your .htaccess file, please see this article. Here's the code that you would use in the .htaccess file for the redirect. This is an example of a 301 redirect. Here's the code - make sure replace the URLs in the code with your corresponding domain names:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]

Basically, the code above looks for the condition of the "domain.com" or "www.domain.com" and then rewrites it per the contents of your "rewrite rule."

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}