redirect from old to new domain - Joomla! Forum - community, help and support
i have move site , redirect google index.
in .htacces have made som 301 redirects. don´t work wan´t. have done wrong.
there 2 things:
1) can´t redirect redirect frontpage new.
if this:
redirectmatch 301 ^/(.*)$ http://www.newdomain.dk/
it redirect pages new frontpage, can´t redirect specific subpages.
how redirect frontpage only?
2) need redirect excact url new domain. redirect strips url not redirect entire url.
redirectmatch 301 ^/1/2/3/4(.*)$ http://www.newdomain.dk/1/2/3/4/5
so redirects newdomain.dk/1 , not newdomain.dk/1/2/3/4/5
in .htacces have made som 301 redirects. don´t work wan´t. have done wrong.
there 2 things:
1) can´t redirect redirect frontpage new.
if this:
redirectmatch 301 ^/(.*)$ http://www.newdomain.dk/
it redirect pages new frontpage, can´t redirect specific subpages.
how redirect frontpage only?
2) need redirect excact url new domain. redirect strips url not redirect entire url.
redirectmatch 301 ^/1/2/3/4(.*)$ http://www.newdomain.dk/1/2/3/4/5
so redirects newdomain.dk/1 , not newdomain.dk/1/2/3/4/5
you want write condition , not match.
try this...
try this...
code: select all
options +followsymlinks
rewriteengine on
#
rewritecond %{http_host} !^www\.domain2\.com$
rewriterule (.*) http://www.domain2.com/$1 [r=301,l]
Comments
Post a Comment