WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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...

share|improve this question

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.

share|improve this answer
Tried that....didn't help – boruch Apr 24 '13 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 Apr 24 '13 at 15:30
@boruch That’s a new question. Try to get a RewriteLog. – toscho Apr 24 '13 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 Apr 24 '13 at 16:01
@boruch Look here. – toscho Apr 24 '13 at 16:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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