I have a multisite installed with the domain mapping plugin.

All the domains work fine, except...

One of the sites is on a subdirectory (the main site running Magento).

I added a symlink to the original installation directory in the WP subdirectory (/wp/ in my case) because I needed to change the .htaccess file for a different rewrite base. The issue is that the wp-admin does not work. Upon login, the page refreshes (with redirect_to= in the URL) and then nothing happenes. Upon further research, I've noticed that the cookie the site tries to set is for the parent site domain...

1 Answer 1


Try to set the constant COOKIE_DOMAIN to an empty value or the value of the real address.


define( 'COOKIE_DOMAIN', '' );

Be aware WordPress has a lot of issues with symlinks, so there might be other problems too.

  • Tried that....didn't help
    – boruch
    Commented Apr 24, 2013 at 13:11
  • I got the admin to work (no idea how...) but now the actual site pages redirect to /wp/wp/ from regular /wp/ . any ideas?
    – boruch
    Commented Apr 24, 2013 at 15:30
  • 1
    @boruch That’s a new question. Try to get a RewriteLog.
    – fuxia
    Commented Apr 24, 2013 at 15:33
  • @toscno +1 , it is not a mod_rewrite thing. I removed the htaccess file, and still getting the redirect. it seems like a WP thing
    – boruch
    Commented Apr 24, 2013 at 16:01
  • 1
    @boruch Look here.
    – fuxia
    Commented Apr 24, 2013 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.