.htaccess - redirect url A to url B -
i 2 domains. domaina.co.uk , domainb.co.uk
domaina.co.uk main site. files are, including htaccess file
domainb.co.uk not hosted on same server, dns record pointing domaina.co.uk ip address.
is possible redirect domainb.co.uk domaina.co.uk/page ?
thanks in advance.
ps. apologies, title of question isn't good. couldn't summarise caveat well.
on domainb.co.uk pointing host enable mod_rewrite , .htaccess through httpd.conf
, put code in .htaccess
under document_root
directory:
options +followsymlinks -multiviews # turn mod_rewrite on rewriteengine on rewritebase / rewritecond %{http_host} ^(www\.)?domainb\.co\.uk$ [nc] rewriterule ^ http://domaina.co.uk%{request_uri} [r=301,l]
Comments
Post a Comment