ericwilmoth Posted March 5, 2008 Share Posted March 5, 2008 Hi. I'm having a killer issue with Wordpress. I'm a new user and have been playing around with various options and features for the last couple days just trying to figure it all out and suddenly I'm noticing that the sidebar links to my categories, pages and archives aren't targeting properly. they're all going to my error page and i have no clue why that would be. Can someone lend a hand? Quote Link to comment Share on other sites More sharing options...
TCH-Derek Posted March 5, 2008 Share Posted March 5, 2008 Hello Eric, Post us the link to the WordPress blog and we can look it over for you and see if we notice anything. Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 5, 2008 Author Share Posted March 5, 2008 Yeah--sorry. I should've thought of that on my own. http://archetypalimages.com/blog/ Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted March 5, 2008 Share Posted March 5, 2008 It looks like you have turned on the Permalinks. Did you remember to update your .htaccess file with the code necessary to use Permalinks? Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted March 5, 2008 Share Posted March 5, 2008 If you have updated your .htaccess file with the code on the permalinks page you may need to add the following to the .htaccess file above those lines to make it work. I had to do this on one of my sites. ><IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 5, 2008 Author Share Posted March 5, 2008 I have no idea how to do that. I think i recall passing a link about that at one point, but didn't realize it's significance at the time. I still haven't upgraded yet. I guess i'll do that first and then look for how to update the .htaccess file. Thanks! Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted March 5, 2008 Share Posted March 5, 2008 To upgrade the .htaccess file go into cPanel and open the File Manager. Select the .htaccess file in the "blog" folder, if there isn't one there create it. Then select it and choose to edit it. Copy and paste the contents of the .htaccess infor on the WordPress permalink dialog screen. Then save the file. If there is one already there, it would be wise to make a copy of it before editing. Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 5, 2008 Author Share Posted March 5, 2008 (edited) Bruce, What kind of file type is that? I mean, i see it's an .htaccess, but in the file manager the types of new files it lets me create are text documents, html docs and perl and shell scripts. I'm confused. Edited March 5, 2008 by ericwilmoth Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 5, 2008 Author Share Posted March 5, 2008 Sorry to double-post, but i solved the problem with your advice. What i couldn't figure out how to do was create an .htaccess file. in the end i just copied the one in my public directory and pasted it into the blog folder, then edited that. Now everything works. Thanks Bruce! Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted March 5, 2008 Share Posted March 5, 2008 Sorry, I had to go last night. But glad you got it working. The .htaccess file is simply a text file. This file can contain redirects as well as information to allow/deny access to your site. Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 5, 2008 Author Share Posted March 5, 2008 No Problem. Thanks again for the help. Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 17, 2008 Author Share Posted March 17, 2008 One last question on this... ...after entering the permalink data into the .htaccess file everything works just fine; i'm wondering...i left the info for the error document 404 in there below the permalink data--is there any reason this would ever cause a problem i'm not aware of, or is this perhaps the best way to go, having them both in there, just in case a post-link does somehow get broken in wordpress at some point? Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted March 17, 2008 Share Posted March 17, 2008 It should not, but a better way to do it would be to create a 404.php file for your theme. That would automatically be server on a 404. Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 17, 2008 Author Share Posted March 17, 2008 Ok. I can see the wisdom in that...though i'm not sure just how i would go about doing that without it conflicting with the other .htaccess file. Could you explain it further? Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted March 17, 2008 Share Posted March 17, 2008 If you have a 404.php page in your WP theme it would override your .htaccess settings. WordPress will serve up the 404.php page on 404 errors automatically. At least I'm pretty sure it will. Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 17, 2008 Author Share Posted March 17, 2008 So it sounds like you're saying take out the 404 code from the .htaccess file that has the permalink data in it, and wordpress should take care of error pages on its' own? If that's the case, is there a way to personalize those wordpress 404 error pages? Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted March 17, 2008 Share Posted March 17, 2008 Yes, you make a copy of the index or single php file for your theme and remame it 404.php and then make any changes you wish to it. Quote Link to comment Share on other sites More sharing options...
ericwilmoth Posted March 17, 2008 Author Share Posted March 17, 2008 Ok. I think i get what you're layin' down. I'll play with that and get back to you if i have any trouble. Thanks, Bruce. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.