How do I map two domains to the same wordpress installation?

I don’t think you can do this without some technical intervention. Basically, WordPress uses the site name that you provide in your WordPress Settings (and is saved to the database) to generate the links for your website.

Here is what I just thought of:

  1. Create a plugin to solve this problem.

  2. The plugin will detect the referral site.

  3. you add a hook to the “home_url” filter to change your site url just for the current session

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)