.htaccess - Redirect visitor from one domain to another but keep the requested domain name -
so have client wants have multilingual web site can accessed 2 domain names:
domain_name_1.ru
domain_name_2.ee (default)
the client doesn't want log in , out every time he/she needs create content both sites. site running on wordpress , right russian version of site can viewed typing in:
domain_name_2.ee/ru
nb! domain names hosted @ 2 different web hosts.
domain_name_1.ru web hosts options 1) redirect domain 2) change name servers
because of this, i'd know if possible run both sites on 1 wordpress install , using .htaccess can domain name domain_name_2.ee/ru masked domain_name_1.ru when user visits site?
the way want setup domain_name_1.ru
domain use domain_name_2.ee/ru
directory document root (can using virtual host , documentroot
directive). otherwise you'll have use mod_proxy, , ensure it's loaded, , reverse proxy request other domain:
rewriteengine on rewritecond %{http_host} ^(www\.)?domain_name_1\.ru$ [nc] rewriterule ^(.*)$ http://domain_name_2.ee/ru/$1 [l,p]
Comments
Post a Comment