A
A
Alexander Mashtalir2015-01-25 18:54:41
htaccess
Alexander Mashtalir, 2015-01-25 18:54:41

How to redirect all site pages to a new domain?

Hello! The essence of the question is this:
You need to make a temporary (302) redirect from all pages of the site to another domain.
I use this construction:
Redirect 302 / new-domain.com
BUT if there is a tail, for example: site.com/ru, then the redirect occurs to new-domain.comru
What needs to be written in .htaccess so that all pages of the old site lead to the main page of the new ?!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-01-25
@IceJOKER

RewriteEngine on
RewriteRule .* new-domain.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question