View Single Post
Old August 8th, 2007, 7:38 AM   #2 (permalink)
hURT
Registered User
Fresh Surpasser
 
hURT's Avatar
 
Joined in Aug 2007
18 posts
Gave thanks: 7
Thanked 1 Time in 1 Post
Resolved. Somewhat...



Ok, after hours of searching, copy/paste, clearing cookies, typing URLs, shifting code around and frequently hitting F5. I believe I found somewhat of a solution. I was browsing wordpress forums and found someone similiar to my own problem.

His domain would see both "http://www.domain.com" and "http://domain.com" differently, similiar to my problem where /blog/ is different then /blog, in a way.

Here is the link of the topic as reference;
http://bbpress.org/forums/topic/htac...woes?replies=8

I followed his solution and edited the wp-settings.php in wordpress root directory. I then proceeded to find line 186, should look something like this;

Code:
if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', false);
I removed the false and replaced it with my domain, as following;

Code:
if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', '.mydomain.com');
For those who can't see very well, like me, it's; apostrophe period mydomain period com apostrophe

But, I had to go back to any wordpress files I modified and change any links to add the "www" or end links with a "/" so the URL would not jump around between http://www.domain.com or http://domain.com in the browser.

Well, somewhat of a fix and it worked out for me. If anyone has any input as to why it does this, or has a better fix that doesn't require editing anything then, please feel free to add, as I'm curious as to why this happened.
I hope this will provide helpful to someone else as well.
hURT is offline   Reply With Quote