Domain Pointers

andry83

Verified User
Joined
Mar 22, 2018
Messages
8
Good morning, everyone.

A customer wants to redirect 50 domains to the main site so he used the "Domain Pointer" function. He would also like to see the url of the 50 domains in the browser and not the main site url so did not check the entry "Alias" as indicated in this guide
Unfortunately you always see only the url of the main site.

Do you have any idea what the problem might be?
Thansk
 
Do you have any idea what the problem might be?
I'm not sure, but maybe a redirect in the main site is causing it?
For example a redirect from any visitor with http to https on the main domain name or something similar?
Could be in the .htaccess so I would check there.
 
Yes, because domain alias must be alias, that's why logs file will only available from the main domain.

if customer want to separate the log files... then they must create separate domain and symbolic link "public_html" to main domain directory for share the same file structure.

Since in now directadmin don't have any option to create symbolic link from the File Manager, so.... it's hard for them to adjust this mechanism.
 
I'm not sure, but maybe a redirect in the main site is causing it?
For example a redirect from any visitor with http to https on the main domain name or something similar?
Could be in the .htaccess so I would check there.
Thanks Richard.
The main site is a very simple WP. I checked the .htaccess and there are only the basic rewrite rule of WP.
The option "Force SSL with https redirect" in D.A. is not selected.
The server is an AlmaLinux 9.5 with OLS 1.8.2 and D.A. 1.675, the problem could be OLS?
 
I would try to disable the basic rewrite rule of WP by commenting it and see if it makes any difference.
If not, then I wouldn't know of it's OLS or something else.

Maybe @zEitEr has a clue. I don't use this option very much.
 
Hello,

If a user wants to use one WP installation on different domains (like here 50+) and share content of public_html, then the user will need either to create domains as aliases (in directadmin) or to symlink public_html among domains (created with their own public_html) as mentioned user Ohm J
 
Hello,

If a user wants to use one WP installation on different domains (like here 50+) and share content of public_html, then the user will need either to create domains as aliases (in directadmin) or to symlink public_html among domains (created with their own public_html) as mentioned user Ohm J
Thanks for the answer.
My customer would like to hide the main site url in the browser and show the domain pointer url.
He would like to have the url masking.
 
And what is the problem then? If you access a site over an aliased domain, how would it reveal the original domain? If the original domain is displayed in HTML code of a site, then you would either need to:

1. update PHP code of the site, and make it to reflect $_SERVER['SERVER_NAME'] instead of one specified in settings of the site.
2. rewrite outputted HTML code by a webserver and substitute one domain name with another.

Whichever step you would choose, you are advised to search the forums and internet for more details. I won't give detailed instructions on either of the cases.
 
Ok, I’m asking for explanations about the Domain Pointer function of DA not WP.
In the guide I posted in the first post it says:

> we also own the domain sitehelper.com. In the >right example we are creating a pointer that causes all visitors of >sitehelper.com to end up on site-helper.com.
>"Check the box "Create as an Alias" if you want users to view site->helper.com links in their browser instead of sitehelper.com."

So if I do not select "Create as alias" I have to see the url of the domain pointer, is it right or I don’t undersand the guide?
 
So if I do not select "Create as alias" I have to see the url of the domain pointer, is it right or I don’t have under the guide?

Why to ask the same? The best way to see the difference, is to try. So use DirectAdmin and try creating a domain the both ways and feel the difference.
 
Why to ask the same? The best way to see the difference, is to try. So use DirectAdmin and try creating a domain the both ways and feel the difference.
Sorry, have you read my first post? I created the domain pointer WITHOUT Select "Create as an Alias" and in the browser we always see the main site url. So I ask for the third time: if I do not select "Create as alias" I have to see the url of the domain pointer, is it right or not?
if you don't knwon the answer pleas don't answer
There is not difference with o without ALIAS checked
 
if you don't knwon the answer pleas don't answer

Replied in the very first post of mine in the thread. When a domain is created as an alias it never redirects to another domain. This is true only for a directadmin server with default and actual templates and without redirects in PHP, htaccess, other places.

There is not difference with o without ALIAS checked

Then it means:

1. that PHP code of your site redirects a visitor to the main domain. Which is expected, since you are using WordPress. Use "WordPress Multisite"
2. or you have a redirect in .htaccess file
 
Back
Top