Jump to content
Sign in to follow this  

Domínio Adicional

Recommended Posts



Explicando o que possuo:

Um alojamento web associado ao dominio.com (exemplo)

Outros dois domínio adicionais associados a este alojamento. dominio1.es e dominio2.com

Já coloquei o nameserver do alojamento nas definições do dominio1.es e dominio2.com

Esta parte está a funcionar bem.

No CPanel (do alojamento), nos "Dominios adicionais" tenho adicionado o dominio2.com com:

Documento "Root": public_html/dominio2.com

Na pasta public_html/dominio2.com tenho um index.php.

O meu problema é quando vou ao browser e escrevo www.dominio2.com vai-me para à pagina www.dominio2.com/cgi-sys/defaultwebpage.cgi

com a seguinte mensagem:

If you feel you have reached this page in error, please contact the web site owner:


It may be possible to restore access to this site by following these instructions for clearing your dns cache.

If you are the web site owner, it is possible you have reached this page because:

    * The IP address has changed.

    * There has been a server misconfiguration.

    * The site may have been moved to a different server.

If you are the owner of this website and were not expecting to see this page, please contact your hosting provider.

Contudo se no browser eu entrar directamente em www.dominio2.com/index.php este mostra-me o conteúdo do php...

1. Como redirecciono correctamente dominio2.com para o (respectivo) index.php?

Share this post

Link to post
Share on other sites

Percebi agora que www.dominio2.com funciona bem. Vai ler o index.php.

Já sem o 'www' é que dá a tal mensagem de erro.

2.Contacto o serviço de alojamento? Que faço?

Share this post

Link to post
Share on other sites

Numa palavra: Sim.

Visto que, provavelmente não tens acesso às configurações do servidor, para que possas configurar manualmente o redirect para o www, só mesmo eles te podem tratar disso.

“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

-- Tony Hoare

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.