apache - htaccess subpage on subdomain to subpage on other subdomain -
i have trouble finding out right approach make 301 redirect 1 subdomains page subdomains page.
for instance:
subpage1.mysite.com/contact needs redirected subpage2.mysite.com/kontakt
(i have few hundred of these)
i have lot of 301 redirects in .htaccess far, redirect maindomain mysite.com/page.
i cant make 301 this, right? not work..
301
redirect 301 http://subpage1.mysite.com/contact http://subpage2.mysite.com/kontakt
i can access primary htaccess file on main domain (mysite.com)
read rewritecond seems take of subpages , redirect them other subdomain. not suitable me, url's have changed names , not identical on subdomains.
i've figured out using this. taking subdomain rewritecond
#consultancy redirects rewritecond %{http_host} ^consultancy.madebydelta.com [nc] rewriterule ^about/$ http://testlab.madebydelta.com/om-os/ [r=301,nc,l] rewriterule ^industries/$ http://testlab.madebydelta.com/cases/ [r=301,nc,l]
Comments
Post a Comment