Reputation: 1900
We moved our site from customize CMS to wordpress. It is multi-language website with couple of languages.
Example of page from old site, and how it is on the new site:
There are something like 10 pages that we need to do redirect from the old subdomain to the new subdomain, how we can do it from htaccess file?
Upvotes: 1
Views: 54
Reputation: 786091
Place this rule in your DOCUMENT_ROOT/.htaccess
file of ru.domain.com
:
RewriteEngine On
RewriteCond %{HTTP_HOST} =ru.domain.com
RewriteRule ^articles/587/?$ http://domain.com/ru/gelatti-de-marco-2/ [L,NC,R=302]
Once you verify it is working fine, replace R=302
to R=301
. Avoid using R=301
(Permanent Redirect) while testing your mod_rewrite rules.
Upvotes: 2