domain mapping in CakePHP

I’m trying to do domain mapping on my site in the fastest possible way so I’ve searched for PHP plugins that I can possibly use. However, all results are WordPress-related. I’m using Cakephp 2.4. Is there an available plugin for this that is not WP? If not, how can I make use of 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 former site then I’ll have to set something on someonessite.com so that mysite.com/me will display someonessite.com/myname via domain mapping.

Read More

[NEW EDIT]
So, I want to map mysite.com/me (my own site) to the IP address of someonessite.com/myname (someone else’s site that I have account at and where I want to add this php code to)

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

Related posts

Leave a Reply

2 comments

  1. You are not very clear on what you want, but at a guess it looks like you need this

    You can use that plugin to set up different configs based on what domain is loaded. I use it for that use case also.

  2. On mysite.com/me

    use

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