How to redirect www.subdomain.domain.com to http://subdomain.domain.com?

1

To allow in my domain / hosting possible using dynamic subdomains, I had to create a DNS wildcard (subdominio.dominio.com).

The problem is that some people tend to access using the prefix ' www ' before the subdomain, so if I try to access my domain as follows www.subdominio.dominio.com obviously will not resolve and will return error in the browser.

You can configure my hosting / domain so that when the User put the www % before the subdomain, it redirects to subdominio.dominio.com? How?

An example of this is Google Plus, if I access www.plus.google.com will redirect to link .

    
asked by anonymous 16.08.2014 / 22:41

2 answers

2
___ erkimt ___ How to redirect www.subdomain.domain.com to http://subdomain.domain.com? ______ qstntxt ___

To allow in my domain / hosting possible using dynamic subdomains, I had to create a DNS wildcard (subdominio.dominio.com).

The problem is that some people tend to access using the prefix ' www ' before the subdomain, so if I try to access my domain as follows www.subdominio.dominio.com obviously will not resolve and will return error in the browser.

You can configure my hosting / domain so that when the User put the %code% % before the subdomain, it redirects to subdominio.dominio.com? How?

An example of this is Google Plus, if I access www.plus.google.com will redirect to link .

    
______ ___ azszpr29271

See if this rule resolves Filmography

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]

Note!

    
______ ___ azszpr29272

In your DNS provider, add a CNAME to www.subdominio.dominio.com subdominio.dominio.com

    
___
16.08.2014 / 22:57
0
___ erkimt ___ How to redirect www.subdomain.domain.com to http://subdomain.domain.com? ______ qstntxt ___

To allow in my domain / hosting possible using dynamic subdomains, I had to create a DNS wildcard (subdominio.dominio.com).

The problem is that some people tend to access using the prefix ' www ' before the subdomain, so if I try to access my domain as follows www.subdominio.dominio.com obviously will not resolve and will return error in the browser.

You can configure my hosting / domain so that when the User put the %code% % before the subdomain, it redirects to subdominio.dominio.com? How?

An example of this is Google Plus, if I access www.plus.google.com will redirect to link .

    
______ ___ azszpr29271

See if this rule resolves Filmography

%pre%

Note!

    
______ ___ azszpr29272

In your DNS provider, add a CNAME to www.subdominio.dominio.com subdominio.dominio.com

    
___
16.08.2014 / 23:02