Map Domain to WordPress Page

孤街醉人 提交于 2019-12-06 13:08:34

You can achive this using the .htaccess file....

Just point the A record of your domain names to your domain. Now do the following...

RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com
Rewriterule ^(.*)$ http://mydomain.com/about/bio [L]

RewriteCond %{HTTP_HOST} ^(www.)?myresumedomain.com
Rewriterule ^(.*)$ http://myresumedomain.com/about/resume [L]

RewriteCond %{HTTP_HOST} ^(www.)?anotherdomain.com
Rewriterule ^(.*)$ http://anotherdomain.com/bio [L]

Two possibilities you can explore:

A/ Using the plesk (or other registrar), you could try a wild-card redirect such as:

anotherdomain.com -> mydomain.com/about  // with "wildcard" set to "yes".

B/ If that fails, you can create a simple redirect (anotherdomain.com -> mydomain.com) and then in WordPress (assuming it's living at mydomain.com), manually redirect individual URLs using the Redirection Plugin.

You would create individual rules like:

anotherdomain.com/bio -> mydomain.com/about/bio

C/ Finally, WordPress has become so good at redirecting broken links that you might be able to get away with simply redirecting the anotherdomain.com to mydomain.com and seeing if wordpress serves the correct page when an approximate URL is entered.

anotherdomain.com -> mydomain.com   // this is the redirect you create
when people type anotherdomain.com/bio, WP might serve mydomain.com/about/bio auto-magically

Good luck!

if was me, I would do by 2 ways:

  1. Domain forward domain1 -> domain2/about-page
  2. Create a index.html and create a sub-folder on domain1 (ex: domain1.com/about) then linked to it. - Index.html will use iframe to call domain2/about.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!