Answer the question
In order to leave comments, you need to log in
Redirect from domain to subdomain, how to implement on .htaccess?
Hello! You need to write an .htaccess file (PHP can be used) to redirect from the domen.ru domain to the subdomen.domen.ru subdomain. Please help. PS: I tried with my own methods, gave out Internal server error or cyclic redirects...
Answer the question
In order to leave comments, you need to log in
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domen.ru$
RewriteRule ^(.*)$ http://subdomen.domen.ru/$1 [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question