/    Sign up×
Community /Pin to ProfileBookmark

domains: parked, add-on, sub, redirect

Lets say I have site1.info and it has a parked domain site1.org. Different extensions, both lead to the same site. Fine.

I also have site2.com which is an add-on domain on site1. These files are in a sub directory in public_html of site1. It has its own domain name. Fine.

Now, there is a variation of site2.com’s name say varsite2.com (registered and already pointing to the servers.) I want this name to bring up site2. Do I park it on site2? Re-direct? cPanel seems only to allow me to park on the original site1 name and the re-direct instructions don’t seem to apply to this situation.

What to do? ?

to post a comment
Full-stack Developer

5 Comments(s)

Copy linkTweet thisAlerts:
@TJ111Feb 04.2008 — Find the httpd.conf file, open it and find the following:

<i>
</i>&lt;VirtualHost [[your ip address]]&gt;
ServerName site2.com

....


And then just add the following:
<i>
</i>&lt;VirtualHost [[your ip address]]&gt;
ServerName site2.com
ServerAlias varsite2.com

....

Restart apache and that should be it.
Copy linkTweet thisAlerts:
@PittsburghRedauthorFeb 05.2008 — This solution seems to imply that I am hosting these sites and in control of the server. These sites reside on a bought space server. Am I making any sense?
Copy linkTweet thisAlerts:
@TJ111Feb 05.2008 — Contact your web host and ask them to do it for you. Otherwise I'm not sure how to do it from within specific control panels. This might be possible with .htaccess files, but I'm not sure.
Copy linkTweet thisAlerts:
@PittsburghRedauthorFeb 06.2008 — Yes, I can do that. I think I'm supposed to be able to do some things myself through cPanel ... but I must be dense. I use .htaccess for security.
Copy linkTweet thisAlerts:
@paulkoanFeb 14.2008 — Hi PittsburghRed

No you are not dense!

An addon domain is one that gets its content from a subfolder, rather than the main folder of the site.

As you will have noticed, you can specify the folder when you create the add-on domain.

All you need to do is when you create varsite2.com, choose the same subfolder as site2.com.

Cheers,

Paul
×

Success!

Help @PittsburghRed spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...