$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>plugins - WordPress multi domain - redirect|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugins - WordPress multi domain - redirect

matteradmin6PV0评论

I'm new to WordPress and I have a WordPress site where I've created a landing page that needs to be opened by another domain.

I would like accessing the second domain in the browser's address bar to have the name of the second domain.

That is:

dominoA/landing-page

domainB -> open domainA/landing-page

I need the browser's address bar to show domainB

How can I set this redirect? There is a reliable procedure, a plugin or other.

Thank you

I'm new to WordPress and I have a WordPress site where I've created a landing page that needs to be opened by another domain.

I would like accessing the second domain in the browser's address bar to have the name of the second domain.

That is:

dominoA/landing-page

domainB -> open domainA/landing-page

I need the browser's address bar to show domainB

How can I set this redirect? There is a reliable procedure, a plugin or other.

Thank you

Share Improve this question edited Nov 22, 2018 at 21:16 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Nov 22, 2018 at 16:49 JosoJoso 1112 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I'm afraid that this doesn't have much in common with WP, but...

One of the way to solve this would be to put iframe on page B and set its source to site A. So in site B you do something like this:

<html>
  ....
  <body>
     <iframe src="http://dominoA/landing-page" style="position: fixed; top: 0px; left: 0px; bottom: 0px; right: 0px; width: 100%; height: 100%; border: none; margin: 0; padding: 0;">
        Your browser doesn't support iframes
     </iframe>
  </body>
</html>

You could also use CNAME record, I guess...

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far