Domain pointer to a particular page?

scoopy

New member
Joined
Sep 8, 2010
Messages
4
Hi there

Is it possible to point a pointer domain to a page other than the site root? I would like to point a new domain that a client has purchased to a particular page of their site.
 
Then you need to add the domain at 'Domain Setup' and not at 'Domain Pointers' to get 2 different sites instead of 1.
 
Then you need to add the domain at 'Domain Setup' and not at 'Domain Pointers' to get 2 different sites instead of 1.

Thanks for your reply. However, I don't want two different websites. I want 2 domains to access different home pages. The main domain will access the root, the pointer or addon to access a different page.

Thanks

Scoopy
 
Domain Pointer: Is only for having more domains on 1 public_html, so e.g. home.com, home.net, home.org to 1 public_html.

Its not for 2 different pages, then you should use 2 seperated public_html directories. (domain setup)
 
Simple use .htaccess

Code:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} puthereyourotherdomain.tld
RewriteRule ^(.*)$ herethepage.php [L]

or within the site, e.g PHP

PHP:
if ($_SERVER['HTTP_HOST'] == 'yourotherdomain.tld') {
    include = 'theotherpage.php';
}
 
Back
Top