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 » Discussions » All Things Techy » Site Maintenance » Wordpress Link Problem

Site Maintenance Program updates, securing your website, creating backups.

Reply
 
LinkBack Thread Tools Search this Thread
Old June 23rd, 2007, 12:49 AM   #1 (permalink)
Registered User
Seasoned Poster
 
ryanator's Avatar
 
Joined in Jun 2004
Lives in Candy Land
86 posts
Gave thanks: 0
Thanked 0 times
Wordpress Link Problem

Hello again... Sorry to bother, but I cant seem to get past the fact that my wordpress isn't working again. Its on my original domain, and when I try to link it through the pages the pages doesn't come up like so here

I also get my 404 page when I try access other post's url through links. It also occurs with my categories too... Any ideas? Or is my wordpress going wack.

Lastly, when I tried to edit the page, the bottom doesn't show (with the post preview). I get my 404 page. >> Example
__________________
Domain||Gemini Designs||Blog
ryanator is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23rd, 2007, 4:14 AM   #2 (permalink)
Surpassing Dutch
Super #1
 
Edwin's Avatar
 
Joined in Sep 2004
Hosted on SH98
2,548 posts
Gave thanks: 188
Thanked 45 times
Did you try to the permalinks option?
__________________
sh98
Edwin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23rd, 2007, 4:17 AM   #3 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
If you can get into the Admin section, I would try going into options and changing the Permalinks back to the default option just to make sure the articles will appear correctly with that setting. If that works then it sounds like something's not set correctly with your .htaccess file.

(looks for another thread that has some more info)
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23rd, 2007, 4:45 AM   #4 (permalink)
Registered User
Seasoned Poster
 
ryanator's Avatar
 
Joined in Jun 2004
Lives in Candy Land
86 posts
Gave thanks: 0
Thanked 0 times
Yes, thats the problem. My permalink format doesnt work. When I used the regular ?p=123 format it worked. So could it be my format?
__________________
Domain||Gemini Designs||Blog
ryanator is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23rd, 2007, 5:30 AM   #5 (permalink)
Surpassing Dutch
Super #1
 
Edwin's Avatar
 
Joined in Sep 2004
Hosted on SH98
2,548 posts
Gave thanks: 188
Thanked 45 times
I'm not quite sure. Maybe it is something within your .htaccess file. Not that I know a lot of that.
__________________
sh98
Edwin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23rd, 2007, 8:47 AM   #6 (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
I believe it's because WordPress isn't able to update your .htaccess file, what you should do is change your permalink options & it should print out what you should put in your .htaccess file. Copy this into your .htaccess & you should be fine.
__________________
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
Old June 23rd, 2007, 1:28 PM   #7 (permalink)
muffins
Excelling Contributor
 
jordanriane's Avatar
 
Joined in Mar 2006
Lives in Chicago, IL
Hosted on NONE
644 posts
Gave thanks: 26
Thanked 34 times
You need to edit your .htaccess file so that it has the proper mod_rewrite functions that wordpress relies on for the permalink structure.

Add this to your .htaccess:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
__________________
{o,o} O RLY? atourworst.org - mywhmcs.com
|)__)
-"-"-
jordanriane is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23rd, 2007, 2:51 PM   #8 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
Yeah, what happens is that Wordpress doesn't think it's running on Apache and so it doesn't change the .htaccess file. What you have to do to fool it is edit the /wp-includes/vars.php file and look for the server detection section and change it to the following:
PHP Code:
// Server detection
//$is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false;
$is_apache 1;
$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true false
The reason is that the $_SERVER['SERVER_SOFTWARE'] variable comes back with a value of "WebServerX" and not Apache. So, here we are just forcing the issue and telling it that it is Apache.

After making that change, then Wordpress will actually change the .htaccess file; otherwise, you will need to manually change the .htaccess file yourself like above.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23rd, 2007, 6:24 PM   #9 (permalink)
Registered User
Seasoned Poster
 
ryanator's Avatar
 
Joined in Jun 2004
Lives in Candy Land
86 posts
Gave thanks: 0
Thanked 0 times
Thank you so much! It really did help and it works now.

One question though, why didn't this happen earlier.

- Ryan
__________________
Domain||Gemini Designs||Blog
ryanator 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