[wp-hackers] "Masking" a domain name in a wordpress install

Otto otto at ottodestruct.com
Wed Mar 3 15:57:26 UTC 2010

WordPress uses the two URL settings on the Settings->General page to
determine how to build links.

So if foo.com/bar_root/something is equivalent to bar.com/something
*and both links actually will work*, then you can just change those
two URL settings to reflect the URLs you want to use.

Important: The links must work *before* you change the settings.
Because the second you change the settings, the whole site uses them,
and if the links don't work, the site will stop working too.


On Wed, Mar 3, 2010 at 9:51 AM, Christian Gundersson
<gundersson at gmail.com> wrote:
> Hi guys!
> Say I have two domain names, foo.com and bar.com.
> foo.com has it's own webserver, so foo.com points to foo.com.
> bar.com, however, hasn't but instead points to foo.com/bar_root/.
> Pointing and installing isn't a problem, the problem however is that
> wordpress in bar.com(foo.com/bar_root/) translates all links etc. to
> foo.com/bar_root/link instead of bar.com/link.
> Does anyone know of a good way to solve this?
> Regards
> Christian
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list