wordpress - How to redirect domains to a main website? (content only, I do not want the url to change) -
i have domains www.example.com (my main website), www.example.pt, www.exampleexample.com , www.exampleexample.pt. wordpress websites.
i asked "redirect" websites www.example.com. first thing tried was:
# begin wordpress redirectmatch 301 ^/ http://example.pt # end wordpress and worked when tried access www.example.pt, url change www.example.com, , don't want that.
we want url not change, display same content www.example.com on of out websites.
we understood google not allow duplicated content displayed, there solution?
thanks in advance.
**something new came now.
so have www.example.com , www.exampleexample.com, , both on same server. however, when access www.exampleexample.com automatically redirected www.example.com, , don't have redirection code on htaccess file.
do know may causing this?**
solved
define('wp_siteurl', 'http://' . $_server['http_host']); define('wp_home', 'http://' . $_server['http_host']);
just needed add these 2 lines in wp-config file (at beggining) , solved problem!
okay, depends on hosting setup really. if of domains pointed @ same server, should able point them @ data on server. basically, should able have of domains pointing @ 1 place.
for reference, i'm still setting new server @ moment drunkoncaffeine.co.uk, drunkoncaffeine.com, f291.net , moltis.co.uk point @ same website. should able set on purpose.
how depend on server setup. if each of websites on separate server, or isn't doable other reason, frame redirect work. it's old school, , isn't ideal, it'll work users accessing site (less bookmarking, or google).
Comments
Post a Comment