Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

Example:

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
1  
@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
1  
@boruch Look here. –  toscho Apr 24 '13 at 16:10
show 1 more comment

Your Answer

 
discard

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.