— duplicate post deleted —
If both of the domains are on the same server, the easiest solution is to change the DOCROOT of domain02 to point to the directory where domain01 is serving from.
WordPress keeps it’s URL in the database. Where wpdb=WPDataBase, my installation keeps the records in:
wpdb.options.optionname “siteurl”
wpdb.options.optionname “home”
Additionally, the admin area uses a lot of POST methods, that may break if you try to cloak domain01. There’s a lot of docs on how to move a WP installation if you search the codex and the forums.
Thanks for your reply..
What I am trying to achive is not exactly transfering the domain (which I know how to do), but to BUILD a new web inside a new domain, but having all the traffic redirected from domainname01 to domainame02, but having all people (and search roots) see domainname01 , even if the site is on domainname02.
If I do a simple redirect, the traffic will arrive, but the URL will always be of domainname02, or not ?
Simply redirecting from domain01 will change the URL. See http://en.wikipedia.org/wiki/HTTP_codes#3xx_Redirection for details.
I’ve never tried to mirror or cloak a domain using WP. With that caveat, I don’t think it would work via DNS because of the POST forms and softcoded URLs in the database. I don’t think it would work via redirects or rewrites either, for the same reason.
Give it a try and let us know how it works.
Your best bet would probably be to create an invisible frame at domain01 and load domain02 into it, which will work for most human visitors but break SEO.
http://ww.wp.xz.cn/extend/plugins/domain-mirror/ might help you achieve what you’re looking for.
krembo99, there is malware attached to the site that your user name is linked to.
yes, I know, I have removed it , Thanks.
My server was hacked a while ago, should be ok now (until the next hack ..)