How can I point two domains to the same directory in CPANEL?

avasquez

Registered
Sep 23, 2020
3
0
1
Chile
cPanel Access Level
Website Owner
Hello!

I have 1 domain example: "web.miweb.com" point to specific folder on my server "public_html/webPage"

But i need point a new domain to the same folder, the new domain is example: "web.miweb.live"

How i can do this in the CPANEL? I want both domains to point to the same directory and load the same web application.

Beforehand thank you very much!!
 

avasquez

Registered
Sep 23, 2020
3
0
1
Chile
cPanel Access Level
Website Owner
Hello ffeingol ¿How I can set this alias?

In this case, I would need an alias for "web.miweb.live" that points to the same directory as "web.miweb.com".

how can I do this?

Thank you!
 

sparek-3

Well-Known Member
Aug 10, 2002
1,983
218
343
cPanel Access Level
Root Administrator
I'm assuming web.miweb.com is an addon domain?

Can you not set up web.miweb.live as an addon domain too? But where it lists the DocumentRoot, just set this to be the same as the DocumentRoot you have for web.miweb.com. Why wouldn't that work?

You don't have to use the prefilled DocumentRoot path when you set up an addon domain. You can specify a path all on your own.
 

avasquez

Registered
Sep 23, 2020
3
0
1
Chile
cPanel Access Level
Website Owner
[QUOTE = "sparek-3, publicación: 2789083, miembro: 4919"]
¿Supongo que web.miweb.com es un dominio adicional?

¿No puedes configurar web.miweb.live como un dominio adicional también? Pero donde aparece DocumentRoot, simplemente configúrelo para que sea el mismo que el DocumentRoot que tiene para web.miweb.com. ¿Por qué no funcionaría?

No tiene que usar la ruta DocumentRoot precargada cuando configura un dominio adicional. Puede especificar una ruta por su cuenta.
[/CITAR]

Hello sparek-3, what you tell me I have not tried.

Could you tell me how it is done? Since I don't have the knowledge
 

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
182
31
103
USA
cPanel Access Level
Root Administrator