M
M
martensit2016-03-15 04:08:45
HTML
martensit, 2016-03-15 04:08:45

What should be in the site directory so that all second-level domains and the domain itself are redirected to another specific site?

What should be in the site directory so that all second-level domains and the domain itself are redirected to another specific site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
khipster, 2016-03-15
@khipster

The site directory should contain a .htaccess file with the following content:

RewriteEngine On
RewriteRule .* http://www.newdomain.com [R=301,L]

You may need additional settings, this is the simplest redirect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question