icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Choosing Surpass » Signed Up? » Weird Wordpress annoyance.

Signed Up? If you're new with a question, ask here!

Reply
 
LinkBack Thread Tools Search this Thread
Old August 8th, 2007, 4:54 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
hURT's Avatar
 
Joined in Aug 2007
18 posts
Gave thanks: 7
Thanked 1 Time in 1 Post
Question Weird Wordpress annoyance.

Ok, I figure I'll see if the surpass community can figure this one out.

I have wordpress installed. Works fine to any visitor. The only slight annoyance I noticed is when I'm logged in when I notice this oddity.

Okay, bear with me, this is sorta hard for me to explain...

While logged in, if I type directly to or click a link, for example http://www.domain.com/blog, I notice that it brings me to http://domain.com/blog/ (no WWW) and it appears as if I have not logged in, until I click 'login', it brings me to the wordpress dashboard. Which leads me to believe that I am, in fact, logged in. But, if I type http://www.domain.com/blog/, with the slash at the end, my admin options appear. A small issue, but I just find it weird. Anyway, to simplify...

The following example URLs seem to show my admin links;
http://www.domain.com/blog/
But these following URLs make it appear my admin links are gone and have to login;
http://domain.com/blog/
http://www.domain.com/blog (without that last SLASH, it just forwards me to http://domain.com/blog)

I figure if one types the WWW or what not, it all should go to the same place, but in this case, if one misses the end slash, too it causes the same problem as if I never typed the WWW.

Anyway, any input would be great. If not, well, thats fine too. I figure this would be confusing as I, myself, am confused about this as well. Sorry for the confusion.
hURT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 8th, 2007, 6:38 AM   #2 (permalink)
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 8th, 2007, 9:11 PM   #3 (permalink)
Bow before Surpass!
Super #1
 
Joined in Sep 2004
1,544 posts
Gave thanks: 91
Thanked 49 times
Well, you should also see if you URLs you entered at setup have the "www." in them, otherwise it will not use the www.
__________________
GamingHybrid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 8th, 2007, 10:20 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
hURT's Avatar
 
Joined in Aug 2007
18 posts
Gave thanks: 7
Thanked 1 Time in 1 Post
Quote:
Originally Posted by GamingHybrid View Post
Well, you should also see if you URLs you entered at setup have the "www." in them, otherwise it will not use the www.
Yeah, I thought about that too, so I checked the MyphpAdmin and it seemed to have the WWW in it. I think the problem is the new version of wordpress that eliminates the backslash for some odd reason causing to go back to http://domain.com instead of adding WWW. Not sure as to why though.
hURT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 13th, 2007, 9:22 PM   #5 (permalink)
L'Awesome Advocate
Super #1
 
Ancyru's Avatar
 
Joined in May 2004
Lives in .au
Hosted on Mango
2,423 posts
Gave thanks: 1
Thanked 5 times
As in the setup of WordPress in the Options (?) tab.
__________________
When I get sad, I stop being sad, and be AWESOME instead. True story.
Ancyru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On