CakePHP Domain Mapping

I am trying to make domain matching on my site the fastest way, so I was looking for PHP plugins that I can use. However, all results are related to Wordpress. I am using Cakephp 2.4 . Is there a plugin available for this, not WP? If not, how can I use the WP plugin to make it work in Cakephp?

[EDIT] For example, if I have a public page on someonessite.com/myname and I want mysite.com/me to redirect or map the old site, then I will need to install something on someonessite.com to mysite. com / me display someonessite.com/myname through domain mapping.

[NEW EDIT] So, I want to map mysite.com/me (my own site) to the IP address of someonessite.com/myname (by someone else site on which I have an account and where I want to add this PHP -code)

eg. I will save my own / customized site (mysite.com/me) on someonessite.com and let someonessite.com map their own site to their IP address to display someonessite.com/myname

+6
source share
2 answers

You donโ€™t understand very clearly what you want, but assuming you need this

You can use this plugin to configure different configurations based on which domain is loaded. I also use it for this use case.

+1
source

At mysite.com/me

using

<?php /* Redirect browser */ header("Location: http://someonessite.com/myname"); exit;/* Make sure that code below does not get executed when we redirect. */ ?> 
0
source

Source: https://habr.com/ru/post/977684/


All Articles