.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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -