Jump to content

Recommended Posts

Posted

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?

Posted

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>

Posted

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!

Posted

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.

Posted (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 by ericwilmoth
Posted

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!

Posted

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.

  • 2 weeks later...
Posted

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?

Posted

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.

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...