can the domain name be masked with .htaccess?

0

I am working on a project and I wanted to know if I can mask the name of the domain by another one (which is not yet hired -it does not exist-). Example:

Online domain of the web: example.com

Domino to show: example2.com (without it existing)

Can this be?

    
asked by Gaston Slaiman 18.11.2017 в 19:24
source

1 answer

0

It can not be masked, but you can redirect to another domain by putting this line in your htaccess:

Redirect /index.php http://otrodominio.com

Or, you can use this other code

RewriteEngine On
RewriteCond %{HTTP_HOST} ^tusitio.com [NC]
RewriteRule ^(.*)$ otrositio.com [L,R=301]
    
answered by 18.11.2017 в 20:19